Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5746)

Unified Diff: chrome_frame/test/navigation_test.cc

Issue 3014001: ChromeFrame tabs would hang at times while closing. This would randomly occur... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/test/data/fulltab_before_unload_event_test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/navigation_test.cc
===================================================================
--- chrome_frame/test/navigation_test.cc (revision 52332)
+++ chrome_frame/test/navigation_test.cc (working copy)
@@ -676,5 +676,33 @@
LaunchIEAndNavigate(kFormPostUrl);
}
+TEST_P(FullTabNavigationTest, CF_UnloadEventTest) {
+ bool in_cf = GetParam().invokes_cf();
+ if (!in_cf) {
+ LOG(ERROR) << "Test not yet implemented.";
+ return;
+ }
+
+ std::wstring kUnloadEventTestUrl =
+ GetTestUrl(L"fulltab_before_unload_event_test.html");
+
+ std::wstring kUnloadEventMainUrl =
+ GetTestUrl(L"fulltab_before_unload_event_main.html");
+
+ server_mock_.ExpectAndServeAnyRequests(GetParam());
+ InSequence expect_in_sequence_for_scope;
+
+ ie_mock_.ExpectNavigation(in_cf, kUnloadEventTestUrl);
+ EXPECT_CALL(ie_mock_, OnLoad(in_cf, StrEq(kUnloadEventTestUrl)));
+
+ ie_mock_.ExpectNavigation(in_cf, kUnloadEventMainUrl);
+ EXPECT_CALL(ie_mock_, OnLoad(in_cf, StrEq(kUnloadEventMainUrl)));
+
+ EXPECT_CALL(ie_mock_, OnMessage(_, _, _))
+ .WillOnce(CloseBrowserMock(&ie_mock_));
+
+ LaunchIEAndNavigate(kUnloadEventTestUrl);
+}
+
} // namespace chrome_frame_test
« no previous file with comments | « chrome_frame/test/data/fulltab_before_unload_event_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698