OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 <div id="touchtarget" style="width: 100px; height: 100px; background-color: blue
"></div> | 5 <div id="touchtarget" style="width: 100px; height: 100px; background-color: blue
"></div> |
6 <p id="description"></p> | 6 <p id="description"></p> |
7 <div id="console"></div> | 7 <div id="console"></div> |
8 <script> | 8 <script> |
9 var div = document.getElementById("touchtarget"); | 9 var div = document.getElementById("touchtarget"); |
10 var lastEvent = null; | 10 var lastEvent = null; |
11 var touchEventsReceived = 0; | 11 var touchEventsReceived = 0; |
12 var EXPECTED_TOUCH_EVENTS_TOTAL = 3; | 12 var EXPECTED_TOUCH_EVENTS_TOTAL = 3; |
13 | 13 |
14 function touchEventCallback(event) { | 14 function touchEventCallback(event) { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 shouldBe("'ontouchstart' in window", "true"); | 104 shouldBe("'ontouchstart' in window", "true"); |
105 shouldBe("'ontouchend' in document", "true"); | 105 shouldBe("'ontouchend' in document", "true"); |
106 | 106 |
107 mouseEventSequence(); | 107 mouseEventSequence(); |
108 } else | 108 } else |
109 debug("This test requires DumpRenderTree. Tap on the blue rect to log."); | 109 debug("This test requires DumpRenderTree. Tap on the blue rect to log."); |
110 </script> | 110 </script> |
111 </body> | 111 </body> |
112 </html> | 112 </html> |
OLD | NEW |