summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 18:41:25 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 18:41:25 +0000
commit395e5ba0799f992fafce8a48476e703ff479bb40 (patch)
tree23a8e70aa868d14eb70bb481f77034a6fca4e2d1 /chrome/browser/instant
parent92c79d30b2d16cadd448c7cfd702f3ebd4e10bf5 (diff)
downloadchromium_src-395e5ba0799f992fafce8a48476e703ff479bb40.zip
chromium_src-395e5ba0799f992fafce8a48476e703ff479bb40.tar.gz
chromium_src-395e5ba0799f992fafce8a48476e703ff479bb40.tar.bz2
Attempt at fixing flaky test. I believe the window isn't getting
focus, which causes later failures in download code. I'm not removing the FLAKY label yet, but will if this turns out to be the problem. BUG=77168 TEST=test only change. R=suzhe@chromium.org Review URL: http://codereview.chromium.org/6693099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant')
-rw-r--r--chrome/browser/instant/instant_browsertest.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/instant/instant_browsertest.cc b/chrome/browser/instant/instant_browsertest.cc
index 2d82332..e15edd9 100644
--- a/chrome/browser/instant/instant_browsertest.cc
+++ b/chrome/browser/instant/instant_browsertest.cc
@@ -750,6 +750,8 @@ IN_PROC_BROWSER_TEST_F(InstantTest, DontCrashOnBlockedJS) {
IN_PROC_BROWSER_TEST_F(InstantTest, MAYBE_DownloadOnEnter) {
ASSERT_TRUE(test_server()->Start());
EnableInstant();
+ // Make sure the browser window is the front most window.
+ ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(browser()));
ASSERT_NO_FATAL_FAILURE(SetupInstantProvider("search.html"));
ASSERT_NO_FATAL_FAILURE(FindLocationBar());
GURL url(test_server()->GetURL("files/instant/empty.html"));