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

Unified Diff: ash/display/display_controller_unittest.cc

Issue 25373005: Do not transform scroll event ordinal values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ash/display unittests 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
Index: ash/display/display_controller_unittest.cc
diff --git a/ash/display/display_controller_unittest.cc b/ash/display/display_controller_unittest.cc
index 287b0e4f455ba25a4448deff9c9330b6536eace8..5acce7d45d54c170ef076d9289ece4bc3789eb31 100644
--- a/ash/display/display_controller_unittest.cc
+++ b/ash/display/display_controller_unittest.cc
@@ -1150,9 +1150,9 @@ TEST_F(DisplayControllerTest, TouchScale) {
// With device scale factor = 2, ordinal_offset * 2 = offset.
oshima 2013/10/03 09:23:43 can you update the comment?
Shecky Lin 2013/10/03 09:47:11 Done.
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') | ash/display/root_window_transformers_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698