diff options
author | gavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-04 01:36:56 +0000 |
---|---|---|
committer | gavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-04 01:36:56 +0000 |
commit | ae7d85482dd44ffd2061fd6dc692f4d1ef769d18 (patch) | |
tree | bdd741ff6046d9cb3e6dd9de9c9b3c16e4d98efb /chrome/common/logging_chrome_uitest.cc | |
parent | 76b33b3711aaa11fb7b51c069a61d880a88d4e7c (diff) | |
download | chromium_src-ae7d85482dd44ffd2061fd6dc692f4d1ef769d18.zip chromium_src-ae7d85482dd44ffd2061fd6dc692f4d1ef769d18.tar.gz chromium_src-ae7d85482dd44ffd2061fd6dc692f4d1ef769d18.tar.bz2 |
Revert 58563 - GTTF: Make WaitForTabCountToBecome automation call not Sleep.
(unfortunately, Mac & Windows started failing tab perf tests on this change)
Sleeping is an unreliable method to wait for things.
Instead, we set up an observer.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3300011
TBR=phajdan.jr@chromium.org
Review URL: http://codereview.chromium.org/3344009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58566 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/logging_chrome_uitest.cc')
-rw-r--r-- | chrome/common/logging_chrome_uitest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/logging_chrome_uitest.cc b/chrome/common/logging_chrome_uitest.cc index 072b8cc..328a5a49 100644 --- a/chrome/common/logging_chrome_uitest.cc +++ b/chrome/common/logging_chrome_uitest.cc @@ -183,7 +183,7 @@ TEST_F(RendererCrashTest, Crash) { } else { scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0)); ASSERT_TRUE(browser.get()); - ASSERT_TRUE(browser->WaitForTabCountToBecome(1)); + ASSERT_TRUE(browser->WaitForTabCountToBecome(1, action_max_timeout_ms())); expected_crashes_ = EXPECTED_CRASH_CRASHES; } } |