Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9043)

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest_win.cc

Issue 10479018: Add base::RunLoop and update ui_test_utils to use it to reduce flakiness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win_shared build Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest_win.cc
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest_win.cc b/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest_win.cc
index 35061dc6f737cd7f9b472bba982a78f47679b6b9..9e86ddd5fdfef9b01d4223163c76679fbf6aa826 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest_win.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest_win.cc
@@ -246,6 +246,9 @@ IN_PROC_BROWSER_TEST_F(TabDragControllerTest, DeleteSourceDetached) {
ASSERT_TRUE(ui_test_utils::SendMouseEventsSync(
ui_controls::LEFT, ui_controls::UP));
+ // Wait for the effects of the mouse event to settle.
+ ui_test_utils::RunAllPendingInMessageLoop();
Paweł Hajdan Jr. 2012/06/18 15:56:25 If this is needed after every SendMouseEventsSync,
jbates 2012/06/18 23:14:03 Removed it, because the reposting QuitNow task in
+
// Releasing the mouse should destroy the existing browser and create a new
// one.
ASSERT_EQ(1u, BrowserList::size());

Powered by Google App Engine
This is Rietveld 408576698