2 Test multi-touch is sent to the same iframe.
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 PASS successfullyParsed is true
10 First touch is on inner iframe.
11 PASS ev.type is "touchstart"
12 PASS touchreceiver is "iframe1"
13 PASS ev.changedTouches.length is 1
14 PASS ev.touches.length is 1
15 PASS ev.targetTouches.length is 1
16 PASS ev.touches[0].pageX is 50
17 PASS ev.touches[0].pageY is 50
18 PASS ev.touches[0].target.ownerDocument.title is "iframe1"
19 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe1"
20 PASS ev.targetTouches[0].target.ownerDocument.title is "iframe1"
22 Second touch is on outer iframe, nothing should happen.
24 Moves the first touch outside inner iframe.
25 PASS ev.type is "touchmove"
26 PASS touchreceiver is "iframe1"
27 PASS ev.changedTouches.length is 1
28 PASS ev.touches.length is 2
29 PASS ev.targetTouches.length is 1
30 PASS ev.touches[0].pageX is 200
31 PASS ev.touches[0].pageY is 200
32 PASS ev.touches[0].target.ownerDocument.title is "iframe1"
33 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe1"
34 PASS ev.targetTouches[0].target.ownerDocument.title is "iframe1"
35 PASS ev.touches[1].target.nodeName is "#document"
36 PASS ev.touches[1].target.title is "iframe1"
38 Release the first touch.
39 PASS ev.type is "touchend"
40 PASS touchreceiver is "iframe1"
41 PASS ev.changedTouches.length is 1
42 PASS ev.touches.length is 1
43 PASS ev.targetTouches.length is 0
44 PASS ev.changedTouches[0].identifier is 0
45 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe1"
46 PASS ev.touches[0].identifier is 1
47 PASS ev.touches[0].target.nodeName is "#document"
48 PASS ev.touches[0].target.title is "iframe1"
50 Third touch is on outer iframe, nothing should happen.
52 Release all touches on outer iframe, and touch outer iframe again.
53 PASS ev.type is "touchstart"
54 PASS touchreceiver is "iframe2"
55 PASS ev.changedTouches.length is 1
56 PASS ev.touches.length is 1
57 PASS ev.targetTouches.length is 1
58 PASS ev.touches[0].pageX is 30
59 PASS ev.touches[0].pageY is 30
60 PASS ev.touches[0].target.ownerDocument.title is "iframe2"
61 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe2"
62 PASS ev.targetTouches[0].target.ownerDocument.title is "iframe2"
64 Touch inner iframe, this will trigger onTouch as it is inside outer iframe.
65 PASS ev.type is "touchstart"
66 PASS touchreceiver is "iframe2"
67 PASS ev.changedTouches.length is 1
68 PASS ev.touches.length is 2
69 PASS ev.targetTouches.length is 1
70 PASS ev.touches[0].pageX is 30
71 PASS ev.touches[0].pageY is 30
72 PASS ev.touches[0].target.ownerDocument.title is "iframe2"
73 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe2"
74 PASS ev.targetTouches[0].target.ownerDocument.title is "iframe2"
77 PASS ev.type is "touchend"
78 PASS touchreceiver is "iframe2"
79 PASS ev.changedTouches.length is 2
80 PASS ev.touches.length is 0
81 PASS ev.targetTouches.length is 0
82 PASS ev.changedTouches[0].target.ownerDocument.title is "iframe2"
83 PASS ev.changedTouches[1].target.ownerDocument.title is "iframe2"
84 PASS successfullyParsed is true