summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorace@chromium.org <ace@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 02:01:19 +0000
committerace@chromium.org <ace@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-01 02:01:19 +0000
commit14e2b8be2e44bd8e6836c43fdab55ba902784813 (patch)
treee0f03ba7b2e3b575134414f0155e9572960b0b0c
parent35d478fbf589c050bb255e629fd870182d3c24a1 (diff)
downloadchromium_src-14e2b8be2e44bd8e6836c43fdab55ba902784813.zip
chromium_src-14e2b8be2e44bd8e6836c43fdab55ba902784813.tar.gz
chromium_src-14e2b8be2e44bd8e6836c43fdab55ba902784813.tar.bz2
Unbreaking chromebot page load tests by changing the post-nav sleep duration to a constant 2 seconds.
This used to be settable with a default of 2 seconds, but the flag got rerouted to the action timeout flag in 60764. Review URL: http://codereview.chromium.org/3516009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61140 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/test/reliability/page_load_test.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/test/reliability/page_load_test.cc b/chrome/test/reliability/page_load_test.cc
index 6289b56..8c5927c 100644
--- a/chrome/test/reliability/page_load_test.cc
+++ b/chrome/test/reliability/page_load_test.cc
@@ -209,10 +209,13 @@ class PageLoadTest : public UITest {
scoped_refptr<WindowProxy> window(browser->GetWindow());
if (window.get()) {
if (browser->BringToFront()) {
+ // Sleep for 2 seconds between commands.
+ // This used to be settable but the flag went away.
+ int sleep_time_ms = 2000;
window->SimulateOSKeyPress(app::VKEY_NEXT, 0);
- PlatformThread::Sleep(sleep_timeout_ms());
+ PlatformThread::Sleep(sleep_time_ms);
window->SimulateOSKeyPress(app::VKEY_NEXT, 0);
- PlatformThread::Sleep(sleep_timeout_ms());
+ PlatformThread::Sleep(sleep_time_ms);
}
}
}