summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-24 22:01:18 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-24 22:01:18 +0000
commit86e61b94576958ab1a65ee85aa6ab7c95cdb28b4 (patch)
treea1418c706ddd077e6cb1b085164ec1e4a6d8caac
parent5dd06f3b1baf681d6d6bc0dfe76bfc378cd5bb98 (diff)
downloadchromium_src-86e61b94576958ab1a65ee85aa6ab7c95cdb28b4.zip
chromium_src-86e61b94576958ab1a65ee85aa6ab7c95cdb28b4.tar.gz
chromium_src-86e61b94576958ab1a65ee85aa6ab7c95cdb28b4.tar.bz2
Fix 2 failing BlockedPopupContainerInteractiveTests on Linux.
Review URL: http://codereview.chromium.org/174356 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24155 0039d316-1c4b-4281-b951-d872f2087c98
-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.