| OLD | NEW |
| 1 document.ontouchstart = touchStartHandler; | 1 document.ontouchstart = touchStartHandler; |
| 2 | 2 |
| 3 function touchStartHandler(e) | 3 function touchStartHandler(e) |
| 4 { | 4 { |
| 5 var target = e.touches[0].target; | 5 var target = e.touches[0].target; |
| 6 document.body.removeChild(target); | 6 document.body.removeChild(target); |
| 7 window.location = 'resources/send-touch-up.html'; | |
| 8 } | 7 } |
| 9 | 8 |
| 10 description("If this test does not crash then you pass!"); | 9 description("If this test does not crash then you pass!"); |
| 11 | 10 |
| 12 if (window.testRunner) | 11 if (window.testRunner) |
| 13 testRunner.waitUntilDone(); | 12 testRunner.waitUntilDone(); |
| 14 | 13 |
| 15 if (window.eventSender) { | 14 if (window.eventSender) { |
| 16 eventSender.clearTouchPoints(); | 15 eventSender.clearTouchPoints(); |
| 17 eventSender.addTouchPoint(50, 150); | 16 eventSender.addTouchPoint(50, 150); |
| 18 eventSender.touchStart(); | 17 eventSender.touchStart(); |
| 18 window.location = 'resources/send-touch-up.html'; |
| 19 } else | 19 } else |
| 20 debug('This test requires DRT.'); | 20 debug('This test requires DRT.'); |
| OLD | NEW |