4 <script src=
"../../../../resources/js-test.js"></script>
32 <body style=
"margin:0">
34 <table border=
"0" cellspacing=
"0px" id=
"tablefoo">
36 <td><div id=
"redbox" class=
"box" style=
"background-color:red;"></div></td>
39 <td><div id=
"greenbox" class=
"box" style=
"background-color:green;"></div></td>
44 <p id=
"description"></p>
45 <div id=
"console"></div>
48 if (window
.testRunner
)
49 testRunner
.dumpAsText();
53 if (!window
.eventSender
) {
54 debug("This test requires DumpRenderTree.");
58 description('Verifies that deleting the element being gesture-scrolled immediately before sending the scroll-end does not cause a crash. The test passes if it does not crash.');
60 debug("starting gesture scroll");
61 eventSender
.gestureScrollBegin(10, 10);
62 eventSender
.gestureScrollUpdate(0, -5);
64 debug("deleting the targeted element");
65 var target
= document
.getElementById('redbox');
66 target
.parentNode
.removeChild(target
);
70 debug("dispatching the GestureScrollEnd");
71 eventSender
.gestureScrollEnd(0, 0);