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

Unified Diff: ui/events/gesture_detection/motion_event_buffer_unittest.cc

Issue 494833003: Completed webkit radiusX, radiusY and rotationAngle handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: ui/events/gesture_detection/motion_event_buffer_unittest.cc
diff --git a/ui/events/gesture_detection/motion_event_buffer_unittest.cc b/ui/events/gesture_detection/motion_event_buffer_unittest.cc
index a47e720a44b29613eed660a20a6a837c0cb0b722..836e1fa62768c5b36159c04fe78a5d79493f43a5 100644
--- a/ui/events/gesture_detection/motion_event_buffer_unittest.cc
+++ b/ui/events/gesture_detection/motion_event_buffer_unittest.cc
@@ -96,6 +96,8 @@ class MotionEventBufferTest : public testing::Test,
EXPECT_EQ(a.GetRawX(i), b.GetRawX(bi));
EXPECT_EQ(a.GetRawY(i), b.GetRawY(bi));
EXPECT_EQ(a.GetTouchMajor(i), b.GetTouchMajor(bi));
+ EXPECT_EQ(a.GetTouchMinor(i), b.GetTouchMinor(bi));
+ EXPECT_EQ(a.GetOrientation(i), b.GetOrientation(bi));
EXPECT_EQ(a.GetPressure(i), b.GetPressure(bi));
EXPECT_EQ(a.GetToolType(i), b.GetToolType(bi));
}
@@ -137,6 +139,10 @@ class MotionEventBufferTest : public testing::Test,
EXPECT_EQ(a.GetHistoricalY(i, history_index), b.GetY(bi));
EXPECT_EQ(a.GetHistoricalTouchMajor(i, history_index),
b.GetTouchMajor(bi));
+ EXPECT_EQ(a.GetHistoricalTouchMinor(i, history_index),
+ b.GetTouchMinor(bi));
+ EXPECT_EQ(a.GetHistoricalOrientation(i, history_index),
+ b.GetOrientation(bi));
}
}

Powered by Google App Engine
This is Rietveld 408576698