summaryrefslogtreecommitdiff
path: root/chromium/ui/events/gesture_detection/motion_event_buffer_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/events/gesture_detection/motion_event_buffer_unittest.cc')
-rw-r--r--chromium/ui/events/gesture_detection/motion_event_buffer_unittest.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chromium/ui/events/gesture_detection/motion_event_buffer_unittest.cc b/chromium/ui/events/gesture_detection/motion_event_buffer_unittest.cc
index ba018b2c9ca..5e23bd529fd 100644
--- a/chromium/ui/events/gesture_detection/motion_event_buffer_unittest.cc
+++ b/chromium/ui/events/gesture_detection/motion_event_buffer_unittest.cc
@@ -81,9 +81,11 @@ class MotionEventBufferTest : public testing::Test,
static void ExpectEqualsImpl(const MotionEvent& a,
const MotionEvent& b,
bool ignore_history) {
- EXPECT_EQ(a.GetId(), b.GetId());
EXPECT_EQ(a.GetAction(), b.GetAction());
- EXPECT_EQ(a.GetActionIndex(), b.GetActionIndex());
+ if (a.GetAction() == MotionEvent::ACTION_POINTER_DOWN ||
+ a.GetAction() == MotionEvent::ACTION_POINTER_UP) {
+ EXPECT_EQ(a.GetActionIndex(), b.GetActionIndex());
+ }
EXPECT_EQ(a.GetButtonState(), b.GetButtonState());
EXPECT_EQ(a.GetEventTime(), b.GetEventTime());