Fix tests that were broken by OnLoadEnd() no longer being called for failed provisional loading (issue #381).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@343 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-10-28 17:13:06 +00:00
parent 5155483796
commit acf7cf5738
2 changed files with 19 additions and 8 deletions

View File

@ -267,18 +267,12 @@ public:
// Verify that the request is the same
VerifyRequestEqual(request_, request, true);
DestroyTest();
// No results
return true;
}
virtual void OnLoadEnd(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
int httpStatusCode) OVERRIDE
{
if(!browser->IsPopup() && frame->IsMain())
DestroyTest();
}
CefRefPtr<CefRequest> request_;
};