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

Unified Diff: ash/display/mouse_cursor_event_filter_unittest.cc

Issue 10948020: Convert native mouse locations to the locations in screen coordinate in RootWindowHostLinux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « ash/display/mouse_cursor_event_filter.cc ('k') | ash/drag_drop/drag_drop_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/mouse_cursor_event_filter_unittest.cc
diff --git a/ash/display/mouse_cursor_event_filter_unittest.cc b/ash/display/mouse_cursor_event_filter_unittest.cc
index e116005fbf5a129a1193e3ecd3a3998a636f18a1..2c050bae1bfd644abb48bcad511148705eb774ce 100644
--- a/ash/display/mouse_cursor_event_filter_unittest.cc
+++ b/ash/display/mouse_cursor_event_filter_unittest.cc
@@ -59,7 +59,7 @@ TEST_F(MouseCursorEventFilterTest, WarpMouse) {
// Touch the left edge of the secondary root window. Pointer should warp.
is_warped = event_filter->WarpMouseCursorIfNecessary(root_windows[1],
- gfx::Point(0, 11));
+ gfx::Point(500, 11));
EXPECT_TRUE(is_warped);
EXPECT_EQ("498,11", // by 2px.
aura::Env::GetInstance()->last_mouse_location().ToString());
@@ -78,7 +78,7 @@ TEST_F(MouseCursorEventFilterTest, WarpMouse) {
EXPECT_FALSE(is_warped);
// Touch the right edge of the secondary root window.
is_warped = event_filter->WarpMouseCursorIfNecessary(root_windows[1],
- gfx::Point(499, 11));
+ gfx::Point(999, 11));
EXPECT_FALSE(is_warped);
// Touch the top edge of the secondary root window.
is_warped = event_filter->WarpMouseCursorIfNecessary(root_windows[1],
@@ -117,7 +117,7 @@ TEST_F(MouseCursorEventFilterTest, WarpMouseDifferentSizeDisplays) {
// Touch the left edge of the secondary root window. Pointer should warp
// because 1px left of (0, 499) is inside the primary root window.
is_warped = event_filter->WarpMouseCursorIfNecessary(root_windows[1],
- gfx::Point(0, 499));
+ gfx::Point(500, 499));
EXPECT_TRUE(is_warped);
EXPECT_EQ("498,499", // by 2px.
aura::Env::GetInstance()->last_mouse_location().ToString());
« no previous file with comments | « ash/display/mouse_cursor_event_filter.cc ('k') | ash/drag_drop/drag_drop_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698