summaryrefslogtreecommitdiffstats
path: root/chrome/test/interactive_ui
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-22 13:26:46 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-22 13:26:46 +0000
commit1a96b432de916d958dd03404701405c981fbaff3 (patch)
tree95b1e48eb425c67f139980834e61e848094786e7 /chrome/test/interactive_ui
parent99ad6c9c402c3453044928a6e4414e695feb9200 (diff)
downloadchromium_src-1a96b432de916d958dd03404701405c981fbaff3.zip
chromium_src-1a96b432de916d958dd03404701405c981fbaff3.tar.gz
chromium_src-1a96b432de916d958dd03404701405c981fbaff3.tar.bz2
[GTTF] Reduce number of automation methods ending with WithTimeout.
They are just too easy to misuse. People started inventing their own hardcoded timeouts all over the place. Also, the is_timeout return parameter was not checked consistently. Additionally, some calls actually had no timeout at all, making hangs possible. This change also removes useless DLOG statements. We should get the required info from the ASSERT/EXPECT macros in test code, which is quite well checked by WARN_UNUSED_RESULT. TEST=all ui-based BUG=none Review URL: http://codereview.chromium.org/1076005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42213 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/interactive_ui')
-rw-r--r--chrome/test/interactive_ui/npapi_interactive_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/test/interactive_ui/npapi_interactive_test.cc b/chrome/test/interactive_ui/npapi_interactive_test.cc
index e0b4dd8..3549d71 100644
--- a/chrome/test/interactive_ui/npapi_interactive_test.cc
+++ b/chrome/test/interactive_ui/npapi_interactive_test.cc
@@ -91,7 +91,7 @@ TEST_F(NPAPIVisiblePluginTester, GetURLRequest404Response) {
NavigateToURL(url);
// Wait for the alert dialog and then close it.
- automation()->WaitForAppModalDialog(action_max_timeout_ms());
+ automation()->WaitForAppModalDialog();
scoped_refptr<WindowProxy> window(automation()->GetActiveWindow());
ASSERT_TRUE(window.get());
ASSERT_TRUE(window->SimulateOSKeyPress(base::VKEY_ESCAPE, 0));