summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/blocked_popup_container_interactive_uitest.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/blocked_popup_container_interactive_uitest.cc b/chrome/browser/blocked_popup_container_interactive_uitest.cc
index 874fd72..57cb771 100644
--- a/chrome/browser/blocked_popup_container_interactive_uitest.cc
+++ b/chrome/browser/blocked_popup_container_interactive_uitest.cc
@@ -87,6 +87,12 @@ TEST_F(BlockedPopupContainerInteractiveTest, TestOpenAndResizeTo) {
EXPECT_EQ(320, rect.height());
#endif
+#if defined(OS_LINUX)
+ // It seems we have to wait a little bit for the widgets to spin up before
+ // we can start clicking on them.
+ PlatformThread::Sleep(500);
+#endif
+
SimulateClickInCenterOf(popup_window);
// No idea how to wait here other then sleeping. This timeout used to be
@@ -225,6 +231,12 @@ TEST_F(BlockedPopupContainerInteractiveTest, ShowAlertFromNormalPopup) {
scoped_refptr<TabProxy> popup_tab(popup_browser->GetTab(0));
ASSERT_TRUE(popup_tab.get());
+#if defined(OS_LINUX)
+ // It seems we have to wait a little bit for the widgets to spin up before
+ // we can start clicking on them.
+ PlatformThread::Sleep(500);
+#endif
+
SimulateClickInCenterOf(popup_window);
// Wait for there to be an app modal dialog.