summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/ui/views/find_bar_host_interactive_uitest.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/ui/views/find_bar_host_interactive_uitest.cc b/chrome/browser/ui/views/find_bar_host_interactive_uitest.cc
index b26e5e4..d4151c2 100644
--- a/chrome/browser/ui/views/find_bar_host_interactive_uitest.cc
+++ b/chrome/browser/ui/views/find_bar_host_interactive_uitest.cc
@@ -85,6 +85,7 @@ bool ChromeInForeground() {
EXPECT_TRUE(chrome_window_in_foreground)
<< "Chrome must be in the foreground when running interactive tests\n"
<< "Process in foreground: " << filename.c_str() << "\n"
+ << "Window: " << window << "\n"
<< "Caption: " << caption.c_str();
return chrome_window_in_foreground;
#else
@@ -261,7 +262,8 @@ IN_PROC_BROWSER_TEST_F(FindInPageTest, PrepopulateRespectBlank) {
// Make sure Chrome is in the foreground, otherwise sending input
// won't do anything and the test will hang.
- ASSERT_TRUE(ChromeInForeground());
+ ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(browser()));
+ EXPECT_TRUE(ChromeInForeground());
// First we navigate to any page.
Checkpoint("Navigating", start_time);