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

Unified Diff: ash/display/display_controller_unittest.cc

Issue 27520004: Merge 226767 "Do not transform scroll event ordinal values" (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1650/src/
Patch Set: Created 7 years, 2 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 | « no previous file | ash/display/root_window_transformers_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_controller_unittest.cc
===================================================================
--- ash/display/display_controller_unittest.cc (revision 228919)
+++ ash/display/display_controller_unittest.cc (working copy)
@@ -1148,11 +1148,11 @@
base::TimeDelta::FromMilliseconds(100),
10.0, 1.0, 5, 1);
- // With device scale factor = 2, ordinal_offset * 2 = offset.
+ // ordinal_offset is invariant to the device scale factor.
EXPECT_EQ(event_handler.scroll_x_offset(),
- event_handler.scroll_x_offset_ordinal() * 2);
+ event_handler.scroll_x_offset_ordinal());
EXPECT_EQ(event_handler.scroll_y_offset(),
- event_handler.scroll_y_offset_ordinal() * 2);
+ event_handler.scroll_y_offset_ordinal());
Shell::GetInstance()->RemovePreTargetHandler(&event_handler);
}
« no previous file with comments | « no previous file | ash/display/root_window_transformers_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698