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