diff options
Diffstat (limited to 'ash/display/display_controller_unittest.cc')
-rw-r--r-- | ash/display/display_controller_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ash/display/display_controller_unittest.cc b/ash/display/display_controller_unittest.cc index 287b0e4..c2e3e7d 100644 --- a/ash/display/display_controller_unittest.cc +++ b/ash/display/display_controller_unittest.cc @@ -1148,11 +1148,11 @@ TEST_F(DisplayControllerTest, TouchScale) { 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); } |