summaryrefslogtreecommitdiffstats
path: root/chrome/browser/unload_uitest.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-31 19:36:33 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-31 19:36:33 +0000
commit1105c3ead05ab927e53a129691319a75a1ae1e15 (patch)
tree3b01327871a82a34cef47b1fb07cf3e6a70700bd /chrome/browser/unload_uitest.cc
parent638a737f0fb392349d2d69b1b91ee844f47eca03 (diff)
downloadchromium_src-1105c3ead05ab927e53a129691319a75a1ae1e15.zip
chromium_src-1105c3ead05ab927e53a129691319a75a1ae1e15.tar.gz
chromium_src-1105c3ead05ab927e53a129691319a75a1ae1e15.tar.bz2
Don't hardcode the timeout in the unload ui test.
The too-short timeout was making it leak in valgrind. BUG=20617 Review URL: http://codereview.chromium.org/180044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24919 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/unload_uitest.cc')
-rw-r--r--chrome/browser/unload_uitest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/unload_uitest.cc b/chrome/browser/unload_uitest.cc
index b66cc22..8a61bcc 100644
--- a/chrome/browser/unload_uitest.cc
+++ b/chrome/browser/unload_uitest.cc
@@ -157,7 +157,7 @@ class UnloadTest : public UITest {
#if defined(OS_WIN) || defined(OS_LINUX)
bool modal_dialog_showing = false;
MessageBoxFlags::DialogButton available_buttons;
- EXPECT_TRUE(automation()->WaitForAppModalDialog(3000));
+ EXPECT_TRUE(automation()->WaitForAppModalDialog(action_timeout_ms()));
EXPECT_TRUE(automation()->GetShowingAppModalDialog(&modal_dialog_showing,
&available_buttons));
ASSERT_TRUE(modal_dialog_showing);