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

Side by Side Diff: LayoutTests/fast/events/touch/multi-touch-inside-iframes-expected.txt

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, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 Test multi-touch is sent to the same iframe. 2 Test multi-touch is sent to the same iframe.
3 3
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
5 5
6 6
7 PASS successfullyParsed is true 7 PASS successfullyParsed is true
8 8
9 TEST COMPLETE 9 TEST COMPLETE
10 First touch is on iframe1. 10 First touch is on iframe1.
11 PASS document.elementFromPoint(101, 101).id is "iframe1" 11 PASS document.elementFromPoint(101, 101).id is "iframe1"
12 PASS ev.type is "touchstart" 12 PASS ev.type is "touchstart"
13 PASS touchreceiver is "iframe1" 13 PASS touchreceiver is "iframe1"
14 PASS ev.changedTouches.length is 1 14 PASS ev.changedTouches.length is 1
15 PASS ev.touches.length is 1 15 PASS ev.touches.length is 1
16 PASS ev.targetTouches.length is 1 16 PASS ev.targetTouches.length is 1
17 PASS ev.touches[0].pageX is 50 17 PASS ev.touches[0].pageX is 50
18 PASS ev.touches[0].pageY is 50 18 PASS ev.touches[0].pageY is 50
19 PASS ev.touches[0].identifier is 0
19 PASS ev.touches[0].target.ownerDocument.title is "iframe1" 20 PASS ev.touches[0].target.ownerDocument.title is "iframe1"
20 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe1" 21 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe1"
21 PASS ev.targetTouches[0].target.ownerDocument.title is "iframe1" 22 PASS ev.targetTouches[0].target.ownerDocument.title is "iframe1"
22 23
23 Second touch is on iframe2, nothing should happen. 24 Second touch is on iframe2, nothing should happen.
24 PASS document.elementFromPoint(251, 101).id is "iframe2" 25 PASS document.elementFromPoint(251, 101).id is "iframe2"
25 26
26 Moves the first touch outside iframe1. 27 Moves the first touch outside iframe1.
27 PASS ev.type is "touchmove" 28 PASS ev.type is "touchmove"
28 PASS touchreceiver is "iframe1" 29 PASS touchreceiver is "iframe1"
29 PASS ev.changedTouches.length is 1 30 PASS ev.changedTouches.length is 1
30 PASS ev.touches.length is 1 31 PASS ev.touches.length is 2
31 PASS ev.targetTouches.length is 1 32 PASS ev.targetTouches.length is 1
32 PASS ev.touches[0].pageX is 150 33 PASS ev.touches[0].pageX is 150
33 PASS ev.touches[0].pageY is 150 34 PASS ev.touches[0].pageY is 150
35 PASS ev.touches[0].identifier is 0
36 PASS ev.touches[1].identifier is 1
37 PASS ev.changedTouches[0].identifier is 0
34 PASS ev.touches[0].target.ownerDocument.title is "iframe1" 38 PASS ev.touches[0].target.ownerDocument.title is "iframe1"
35 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe1" 39 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe1"
36 PASS ev.targetTouches[0].target.ownerDocument.title is "iframe1" 40 PASS ev.targetTouches[0].target.ownerDocument.title is "iframe1"
41 PASS ev.touches[1].target.nodeName is "#document"
42 PASS ev.touches[1].target.title is "iframe1"
37 43
38 Release the first touch. 44 Release the first touch.
39 PASS ev.type is "touchend" 45 PASS ev.type is "touchend"
40 PASS touchreceiver is "iframe1" 46 PASS touchreceiver is "iframe1"
41 PASS ev.changedTouches.length is 1 47 PASS ev.changedTouches.length is 1
42 PASS ev.touches.length is 0 48 PASS ev.touches.length is 1
43 PASS ev.targetTouches.length is 0 49 PASS ev.targetTouches.length is 0
44 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe1" 50 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe1"
51 PASS ev.changedTouches[0].identifier is 0
52 PASS ev.touches[0].target.nodeName is "#document"
53 PASS ev.touches[0].target.title is "iframe1"
54 PASS ev.touches[0].identifier is 1
45 55
46 Third touch is on iframe2, nothing should happen. 56 Third touch is on iframe2, nothing should happen.
47 PASS document.elementFromPoint(261, 101).id is "iframe2" 57 PASS document.elementFromPoint(261, 101).id is "iframe2"
48 58
49 Release all touches on iframe2, and touch iframe2 again. 59 Release all touches on iframe2, and touch iframe2 again.
50 PASS ev.type is "touchstart" 60 PASS ev.type is "touchstart"
51 PASS touchreceiver is "iframe2" 61 PASS touchreceiver is "iframe2"
52 PASS ev.changedTouches.length is 1 62 PASS ev.changedTouches.length is 1
53 PASS ev.touches.length is 1 63 PASS ev.touches.length is 1
54 PASS ev.targetTouches.length is 1 64 PASS ev.targetTouches.length is 1
55 PASS ev.touches[0].pageX is 50 65 PASS ev.touches[0].pageX is 50
56 PASS ev.touches[0].pageY is 50 66 PASS ev.touches[0].pageY is 50
57 PASS ev.touches[0].target.ownerDocument.title is "iframe2" 67 PASS ev.touches[0].target.ownerDocument.title is "iframe2"
58 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe2" 68 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe2"
59 PASS ev.targetTouches[0].target.ownerDocument.title is "iframe2" 69 PASS ev.targetTouches[0].target.ownerDocument.title is "iframe2"
60 70
61 Touch iframe1, nothing shoud happen. 71 Touch iframe1, nothing shoud happen.
62 72
63 Release all touches. 73 Release all touches.
64 PASS ev.type is "touchend" 74 PASS ev.type is "touchend"
65 PASS touchreceiver is "iframe2" 75 PASS touchreceiver is "iframe2"
66 PASS ev.changedTouches.length is 1 76 PASS ev.changedTouches.length is 1
67 PASS ev.touches.length is 0 77 PASS ev.touches.length is 0
68 PASS ev.targetTouches.length is 0 78 PASS ev.targetTouches.length is 0
69 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe2" 79 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe2"
70 PASS successfullyParsed is true 80 PASS successfullyParsed is true
71 81
72 TEST COMPLETE 82 TEST COMPLETE
73 83
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698