summaryrefslogtreecommitdiffstats
path: root/chrome/test/selenium
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-30 08:08:05 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-30 08:08:05 +0000
commit8477e568f80707c5d504b602fe10afdab1ab20c8 (patch)
tree765e79905867d0c3098b3e5a3b8faa76caf08ebe /chrome/test/selenium
parentfe7f21bf4373de03fdfe678b28d45ce61b70533d (diff)
downloadchromium_src-8477e568f80707c5d504b602fe10afdab1ab20c8.zip
chromium_src-8477e568f80707c5d504b602fe10afdab1ab20c8.tar.gz
chromium_src-8477e568f80707c5d504b602fe10afdab1ab20c8.tar.bz2
[GTTF] Unify polling interval in some of the polling functions
in the UI test framework: - WaitUntilCookieValue - WaitUntilCookieNonEmpty - WaitUntilJavaScriptCondition This helps reduce number of arbitrary "magic timeouts" which are different in each test. We don't remove the test timeout parameter, because it varies depending on test case, and for now we don't have a better solution. Trying a "naive" way leads to hangs on flaky tests. TEST=UI-based tests BUG=none Review URL: http://codereview.chromium.org/1557001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43062 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/selenium')
-rw-r--r--chrome/test/selenium/selenium_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/test/selenium/selenium_test.cc b/chrome/test/selenium/selenium_test.cc
index f5710f7..4811167 100644
--- a/chrome/test/selenium/selenium_test.cc
+++ b/chrome/test/selenium/selenium_test.cc
@@ -108,7 +108,7 @@ class SeleniumTest : public UITest {
// Wait for the test to finish.
ASSERT_TRUE(WaitUntilCookieValue(tab.get(), test_url, "__tests_finished",
- 3000, UITest::test_timeout_ms(), "1"));
+ UITest::test_timeout_ms(), "1"));
std::string cookie;
ASSERT_TRUE(tab->GetCookieByName(test_url, "__num_tests_total", &cookie));