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

Unified Diff: ash/extended_desktop_unittest.cc

Issue 10905288: Switch primary display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comment Created 8 years, 3 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: ash/extended_desktop_unittest.cc
diff --git a/ash/extended_desktop_unittest.cc b/ash/extended_desktop_unittest.cc
index 7b1823ad1f777193ac74c714744acf2a25fb6474..d899de100b6c8ca8e341aa0ad6ba584388d19a62 100644
--- a/ash/extended_desktop_unittest.cc
+++ b/ash/extended_desktop_unittest.cc
@@ -353,14 +353,14 @@ TEST_F(ExtendedDesktopTest, Capture) {
EXPECT_EQ("1 1", r1_d2.GetMouseButtonCountsAndReset());
r1_w2->ReleaseCapture();
- EXPECT_EQ(NULL,
- aura::client::GetCaptureWindow(r2_w1->GetRootWindow()));
+ EXPECT_EQ(NULL, aura::client::GetCaptureWindow(r2_w1->GetRootWindow()));
generator2.MoveMouseTo(15, 15);
generator2.ClickLeftButton();
EXPECT_EQ("1 1 0", r2_d1.GetMouseMotionCountsAndReset());
EXPECT_EQ("1 1", r2_d1.GetMouseButtonCountsAndReset());
// Make sure the mouse_moved_handler_ is properly reset.
- EXPECT_EQ("0 0 0", r1_d2.GetMouseMotionCountsAndReset());
+ // One mouse exited is issued when capture is released.
+ EXPECT_EQ("0 0 1", r1_d2.GetMouseMotionCountsAndReset());
EXPECT_EQ("0 0", r1_d2.GetMouseButtonCountsAndReset());
}

Powered by Google App Engine
This is Rietveld 408576698