summaryrefslogtreecommitdiffstats
path: root/chrome/browser/session_history_uitest.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 09:33:21 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-10 09:33:21 +0000
commit84466968475088bf0f7ea837a215dec061d5eb41 (patch)
tree335808d3950114731f4dbc7c1ea8b618d76b581c /chrome/browser/session_history_uitest.cc
parent1eb175082bf16c5f7d92972f5d20277cb665d8e8 (diff)
downloadchromium_src-84466968475088bf0f7ea837a215dec061d5eb41.zip
chromium_src-84466968475088bf0f7ea837a215dec061d5eb41.tar.gz
chromium_src-84466968475088bf0f7ea837a215dec061d5eb41.tar.bz2
Make several tests more snappy, less sleepy.
Some also say it's good for reducing flakiness. TEST=Changing ui_tests. BUG=none Review URL: http://codereview.chromium.org/593018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38605 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/session_history_uitest.cc')
-rw-r--r--chrome/browser/session_history_uitest.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/chrome/browser/session_history_uitest.cc b/chrome/browser/session_history_uitest.cc
index fe06d8b..d2bbc84 100644
--- a/chrome/browser/session_history_uitest.cc
+++ b/chrome/browser/session_history_uitest.cc
@@ -72,21 +72,6 @@ class SessionHistoryTest : public UITest {
return title;
}
- // Try 10 times to get the right tab title.
- wstring TestTabTitle(const wstring& value) {
- // Error pages load separately, but the UI automation system does not wait
- // for error pages to load before returning after a navigation request.
- // So, we need to sleep a little.
- const int kWaitForErrorPageMsec = 200;
-
- for (int i = 0; i < 10; ++i) {
- if (value.compare(GetTabTitle()) == 0)
- return value;
- PlatformThread::Sleep(kWaitForErrorPageMsec);
- }
- return GetTabTitle();
- }
-
GURL GetTabURL() {
GURL url;
EXPECT_TRUE(tab_->GetCurrentURL(&url));