diff options
author | huanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 18:40:21 +0000 |
---|---|---|
committer | huanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-22 18:40:21 +0000 |
commit | 0b5f1163a0060e848d90684a2b1c2c8269df292b (patch) | |
tree | f11fbeb26f6bed0b8187a5d79aa9b376f8a02c90 /chrome/test | |
parent | cf87a79279f03f3d6b6fc2542f1e43455bf7e8f1 (diff) | |
download | chromium_src-0b5f1163a0060e848d90684a2b1c2c8269df292b.zip chromium_src-0b5f1163a0060e848d90684a2b1c2c8269df292b.tar.gz chromium_src-0b5f1163a0060e848d90684a2b1c2c8269df292b.tar.bz2 |
Fix some incorrect timeout settings in ui test.
Review URL: http://codereview.chromium.org/113673
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/ui/ui_test.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc index 3c1f776..5a993db 100644 --- a/chrome/test/ui/ui_test.cc +++ b/chrome/test/ui/ui_test.cc @@ -88,7 +88,7 @@ bool UITest::DieFileDie(const FilePath& file, bool recurse) { for (int i = 0; i < 10; ++i) { if (file_util::Delete(file, recurse)) return true; - PlatformThread::Sleep(action_max_timeout_ms() / 10); + PlatformThread::Sleep(sleep_timeout_ms() / 10); } return false; } @@ -214,7 +214,7 @@ void UITest::LaunchBrowserAndServer() { if (wait_for_initial_loads_) ASSERT_TRUE(server_->WaitForInitialLoads()); else - PlatformThread::Sleep(2000); + PlatformThread::Sleep(sleep_timeout_ms()); automation()->SetFilteredInet(true); } @@ -493,10 +493,10 @@ void UITest::NavigateToURL(const GURL& url) { } bool UITest::WaitForDownloadShelfVisible(TabProxy* tab) { - const int kCycles = 20; + const int kCycles = 10; for (int i = 0; i < kCycles; i++) { // Give it a chance to catch up. - PlatformThread::Sleep(action_max_timeout_ms() / kCycles); + PlatformThread::Sleep(sleep_timeout_ms() / kCycles); bool visible = false; if (!tab->IsShelfVisible(&visible)) @@ -513,7 +513,7 @@ bool UITest::WaitForDownloadShelfVisible(TabProxy* tab) { #if defined(OS_WIN) bool UITest::WaitForFindWindowVisibilityChange(BrowserProxy* browser, bool wait_for_open) { - const int kCycles = 20; + const int kCycles = 10; for (int i = 0; i < kCycles; i++) { bool visible = false; if (!browser->IsFindWindowFullyVisible(&visible)) @@ -529,7 +529,7 @@ bool UITest::WaitForFindWindowVisibilityChange(BrowserProxy* browser, bool UITest::WaitForBookmarkBarVisibilityChange(BrowserProxy* browser, bool wait_for_open) { - const int kCycles = 20; + const int kCycles = 10; for (int i = 0; i < kCycles; i++) { bool visible = false; bool animating = true; @@ -859,7 +859,7 @@ bool UITest::EvictFileFromSystemCacheWrapper(const FilePath& path) { for (int i = 0; i < 10; i++) { if (file_util::EvictFileFromSystemCache(path)) return true; - PlatformThread::Sleep(1000); + PlatformThread::Sleep(sleep_timeout_ms() / 10); } return false; } |