Index: content/common/input/touch_event_stream_validator_unittest.cc |
diff --git a/content/common/input/touch_event_stream_validator_unittest.cc b/content/common/input/touch_event_stream_validator_unittest.cc |
index 5e3b767fb1d09364de01342fc5736bc0e349ed71..e70867a7e4f8cc4c987d26325cde02abe27fdf44 100644 |
--- a/content/common/input/touch_event_stream_validator_unittest.cc |
+++ b/content/common/input/touch_event_stream_validator_unittest.cc |
@@ -159,7 +159,12 @@ TEST(TouchEventStreamValidator, InvalidPointStates) { |
j <= WebTouchPoint::StateCancelled; |
++j) { |
event.touches[0].state = static_cast<WebTouchPoint::State>(j); |
- if (event.touches[0].state == kValidTouchPointStatesForType[i]) { |
+ if (event.touches[0].state == kValidTouchPointStatesForType[i] |
+ // TODO(): Remove this StateStationary workaround check for |
jdduke (slow)
2015/01/26 16:18:13
Please make this TODO(jdduke), and at the end refe
USE s.singapati at gmail.com
2015/01/27 14:00:04
Done.
|
+ // TouchMove after implementing TouchMove events filtering |
+ // based on corrected touches state in TouchEventQueue. |
+ || (event.type == WebInputEvent::TouchMove |
+ && event.touches[0].state == WebTouchPoint::StateStationary)) { |
EXPECT_TRUE(validator.Validate(event, &error_msg)); |
EXPECT_TRUE(error_msg.empty()); |
} else { |