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