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

Unified Diff: LayoutTests/fast/events/touch/multi-touch-inside-nested-iframes.html

Issue 259413003: Correctly handle touch events that contain touches not previously reported to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rjkroege cr Created 6 years, 8 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: LayoutTests/fast/events/touch/multi-touch-inside-nested-iframes.html
diff --git a/LayoutTests/fast/events/touch/multi-touch-inside-nested-iframes.html b/LayoutTests/fast/events/touch/multi-touch-inside-nested-iframes.html
index 72a91f36147f8379dacf1f8fa832e07bb6eeb744..c7e0fae6048a421b41fb9c17ca460522c49e254c 100644
--- a/LayoutTests/fast/events/touch/multi-touch-inside-nested-iframes.html
+++ b/LayoutTests/fast/events/touch/multi-touch-inside-nested-iframes.html
@@ -53,21 +53,27 @@ function onTouch(event, receiver)
shouldBeEqualToString('ev.type', 'touchmove');
shouldBeEqualToString('touchreceiver', 'iframe1');
shouldBe("ev.changedTouches.length", "1");
- shouldBe("ev.touches.length", "1");
+ shouldBe("ev.touches.length", "2");
shouldBe("ev.targetTouches.length", "1");
shouldBe("ev.touches[0].pageX", "200");
shouldBe("ev.touches[0].pageY", "200");
shouldBeEqualToString('ev.touches[0].target.ownerDocument.title', 'iframe1');
shouldBeEqualToString('ev.changedTouches[0].target.ownerDocument.title', 'iframe1');
shouldBeEqualToString('ev.targetTouches[0].target.ownerDocument.title', 'iframe1');
+ shouldBeEqualToString('ev.touches[1].target.nodeName', '#document');
+ shouldBeEqualToString('ev.touches[1].target.title', 'iframe1');
break;
case 2:
shouldBeEqualToString('ev.type', 'touchend');
shouldBeEqualToString('touchreceiver', 'iframe1');
shouldBe("ev.changedTouches.length", "1");
- shouldBe("ev.touches.length", "0");
+ shouldBe("ev.touches.length", "1");
shouldBe("ev.targetTouches.length", "0");
+ shouldBe('ev.changedTouches[0].identifier', '0');
shouldBeEqualToString('ev.changedTouches[0].target.ownerDocument.title', 'iframe1');
+ shouldBe('ev.touches[0].identifier', '1');
+ shouldBeEqualToString('ev.touches[0].target.nodeName', '#document');
+ shouldBeEqualToString('ev.touches[0].target.title', 'iframe1');
break;
case 3:
shouldBeEqualToString('ev.type', 'touchstart');

Powered by Google App Engine
This is Rietveld 408576698