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

Unified Diff: ui/ozone/platform/wayland/wayland_pointer_unittest.cc

Issue 2648583003: Handle floating point coordinates from ozone to exosphere (Closed)
Patch Set: fixed wayland unittest Created 3 years, 11 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_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/wayland/wayland_pointer_unittest.cc
diff --git a/ui/ozone/platform/wayland/wayland_pointer_unittest.cc b/ui/ozone/platform/wayland/wayland_pointer_unittest.cc
index 19dbc20f817af83487d01df5b453369e3b3228ae..309221d821fdeaafbb128ce30ca948ffc7b50ee1 100644
--- a/ui/ozone/platform/wayland/wayland_pointer_unittest.cc
+++ b/ui/ozone/platform/wayland/wayland_pointer_unittest.cc
@@ -90,10 +90,8 @@ TEST_F(WaylandPointerTest, Motion) {
EXPECT_EQ(ET_MOUSE_MOVED, mouse_event->type());
EXPECT_EQ(0, mouse_event->button_flags());
EXPECT_EQ(0, mouse_event->changed_button_flags());
- // TODO(forney): Once crbug.com/337827 is solved, compare with the fractional
- // coordinates sent above.
- EXPECT_EQ(gfx::PointF(10, 20), mouse_event->location_f());
- EXPECT_EQ(gfx::PointF(10, 20), mouse_event->root_location_f());
+ EXPECT_EQ(gfx::PointF(10.75, 20.375), mouse_event->location_f());
+ EXPECT_EQ(gfx::PointF(10.75, 20.375), mouse_event->root_location_f());
}
TEST_F(WaylandPointerTest, MotionDragged) {
« no previous file with comments | « ui/events/x/events_x_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698