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

Unified Diff: chrome_frame/test/ui_test.cc

Issue 4866002: Fix flakiness... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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
Index: chrome_frame/test/ui_test.cc
===================================================================
--- chrome_frame/test/ui_test.cc (revision 65940)
+++ chrome_frame/test/ui_test.cc (working copy)
@@ -67,9 +67,12 @@
}
// Tests keyboard shortcuts for back and forward.
-// Marking this test FLAKY as it fails at times on the buildbot.
-// http://code.google.com/p/chromium/issues/detail?id=26549
-TEST_P(FullTabUITest, FLAKY_KeyboardBackForward) {
+TEST_P(FullTabUITest, KeyboardBackForward) {
+ if (IsWorkstationLocked()) {
+ LOG(ERROR) << "This test cannot be run in a locked workstation.";
+ return;
+ }
+
std::wstring page1 = GetSimplePageUrl();
std::wstring page2 = GetLinkPageUrl();
bool in_cf = GetParam().invokes_cf();
@@ -89,7 +92,7 @@
EXPECT_CALL(ie_mock_, OnLoad(in_cf, StrEq(page2)))
.WillOnce(testing::DoAll(
SetFocusToRenderer(&ie_mock_),
- DelaySendScanCode(&loop_, 500, bkspace, simulate_input::NONE)));
+ DelaySendScanCode(&loop_, 1000, bkspace, simulate_input::NONE)));
EXPECT_CALL(ie_mock_, OnLoad(in_cf, StrEq(page1)))
.WillOnce(testing::DoAll(
@@ -135,6 +138,7 @@
.WillOnce(testing::Return());
EXPECT_CALL(win_observer_mock, OnWindowClose(_))
+ .Times(testing::AtMost(2))
.WillOnce(CloseBrowserMock(&ie_mock_));
ananta 2010/11/12 21:10:34 Add another .WillOnce here? Perhaps .WillOnce(test
LaunchIEAndNavigate(GetSimplePageUrl());
« chrome_frame/test/navigation_test.cc ('K') | « chrome_frame/test/navigation_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698