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

Unified Diff: ui/events/x/events_x_unittest.cc

Issue 187333004: Fix direction of horizontal scroll when tilting the scroll wheel on Linux Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | « ui/events/x/events_x.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/x/events_x_unittest.cc
diff --git a/ui/events/x/events_x_unittest.cc b/ui/events/x/events_x_unittest.cc
index 0c7f49d7a6d9d474db9fd1304aa99243f533b429..d4fc3af76b43ac74ac83954fccdd9511583782ce 100644
--- a/ui/events/x/events_x_unittest.cc
+++ b/ui/events/x/events_x_unittest.cc
@@ -89,7 +89,7 @@ TEST(EventsXTest, ButtonEvents) {
EXPECT_EQ(location, ui::EventLocationFromNative(&event));
offset = ui::GetMouseWheelOffset(&event);
EXPECT_EQ(0, offset.y());
- EXPECT_LT(offset.x(), 0);
+ EXPECT_GT(offset.x(), 0);
// Scroll right.
InitButtonEvent(&event, true, location, 7, 0);
@@ -98,7 +98,7 @@ TEST(EventsXTest, ButtonEvents) {
EXPECT_EQ(location, ui::EventLocationFromNative(&event));
offset = ui::GetMouseWheelOffset(&event);
EXPECT_EQ(0, offset.y());
- EXPECT_GT(offset.x(), 0);
+ EXPECT_LT(offset.x(), 0);
// TODO(derat): Test XInput code.
}
« no previous file with comments | « ui/events/x/events_x.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698