summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/events/touch/resources/touch-stale-node-crash.js
blob: c546a691d5f14a735eaa76fd5edd4cfa6e0a3c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
document.ontouchstart = touchStartHandler;

function touchStartHandler(e)
{
    var target = e.touches[0].target;
    document.body.removeChild(target);
    window.location = 'resources/send-touch-up.html';
}

description("If this test does not crash then you pass!");

if (window.layoutTestController)
    layoutTestController.waitUntilDone();

if (window.eventSender) {
    eventSender.clearTouchPoints();
    eventSender.addTouchPoint(50, 150);
    eventSender.touchStart();
} else
    debug('This test requires DRT.');