OLD | NEW |
| (Empty) |
1 This tests single touch event emulation using mouse events. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS 'ontouchstart' in window is true | |
7 PASS 'ontouchend' in document is true | |
8 PASS lastEvent.type is "touchstart" | |
9 PASS lastEvent.touches.length is 1 | |
10 PASS lastEvent.changedTouches.length is 1 | |
11 PASS lastEvent.targetTouches.length is 1 | |
12 PASS lastEvent.pageX is 0 | |
13 PASS lastEvent.pageY is 0 | |
14 PASS lastEvent.shiftKey is true | |
15 PASS lastEvent.altKey is true | |
16 PASS lastEvent.ctrlKey is false | |
17 PASS lastEvent.metaKey is false | |
18 PASS lastEvent.touches[0].target.id is "touchtarget" | |
19 PASS lastEvent.touches[0].pageX is 10 | |
20 PASS lastEvent.touches[0].pageY is 10 | |
21 PASS lastEvent.touches[0].clientX is 10 | |
22 PASS lastEvent.touches[0].clientY is 10 | |
23 PASS lastEvent.touches[0].identifier is 0 | |
24 PASS lastEvent.changedTouches[0].pageX is 10 | |
25 PASS lastEvent.changedTouches[0].pageY is 10 | |
26 PASS lastEvent.changedTouches[0].clientX is 10 | |
27 PASS lastEvent.changedTouches[0].clientY is 10 | |
28 PASS lastEvent.changedTouches[0].identifier is 0 | |
29 PASS lastEvent.targetTouches[0].pageX is 10 | |
30 PASS lastEvent.targetTouches[0].pageY is 10 | |
31 PASS lastEvent.targetTouches[0].clientX is 10 | |
32 PASS lastEvent.targetTouches[0].clientY is 10 | |
33 PASS lastEvent.targetTouches[0].identifier is 0 | |
34 PASS lastEvent.type is "touchmove" | |
35 PASS lastEvent.touches.length is 1 | |
36 PASS lastEvent.changedTouches.length is 1 | |
37 PASS lastEvent.targetTouches.length is 1 | |
38 PASS lastEvent.pageX is 0 | |
39 PASS lastEvent.pageY is 0 | |
40 PASS lastEvent.touches[0].pageX is 20 | |
41 PASS lastEvent.touches[0].pageY is 30 | |
42 PASS lastEvent.touches[0].clientX is 20 | |
43 PASS lastEvent.touches[0].clientY is 30 | |
44 PASS lastEvent.touches[0].identifier is 0 | |
45 PASS lastEvent.type is "touchend" | |
46 PASS lastEvent.touches.length is 0 | |
47 PASS lastEvent.changedTouches.length is 1 | |
48 PASS lastEvent.targetTouches.length is 0 | |
49 PASS lastEvent.pageX is 0 | |
50 PASS lastEvent.pageY is 0 | |
51 PASS lastEvent.changedTouches[0].pageX is 20 | |
52 PASS lastEvent.changedTouches[0].pageY is 30 | |
53 PASS lastEvent.changedTouches[0].clientX is 20 | |
54 PASS lastEvent.changedTouches[0].clientY is 30 | |
55 PASS lastEvent.changedTouches[0].identifier is 0 | |
56 PASS lastEvent.shiftKey is false | |
57 PASS lastEvent.altKey is true | |
58 PASS lastEvent.ctrlKey is true | |
59 PASS lastEvent.metaKey is false | |
60 PASS successfullyParsed is true | |
61 | |
62 TEST COMPLETE | |
63 | |
OLD | NEW |