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

Unified Diff: content/common/input/touch_event_stream_validator_unittest.cc

Issue 788923002: Touch Events - changedTouches list includes non-changed touch points on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed trybots errors. Created 5 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
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 {

Powered by Google App Engine
This is Rietveld 408576698