13 var dragme
= document
.getElementById('dragme');
14 dragme
.addEventListener('dragend', function () {
15 if (window
.testRunner
)
16 testRunner
.notifyDone();
17 document
.getElementById('console').appendChild(document
.createTextNode('PASS'));
18 dragme
.style
.display
= "none";
21 if (!window
.testRunner
)
24 testRunner
.waitUntilDone();
25 testRunner
.dumpAsText();
27 eventSender
.mouseMoveTo(dragme
.offsetLeft
+ dragme
.offsetWidth
/ 2, dragme
.offsetTop
+ dragme
.offsetHeight
/ 2);
28 eventSender
.mouseDown();
29 eventSender
.leapForward(100);
30 eventSender
.mouseMoveTo(0, 0);
31 eventSender
.mouseUp();
33 window
.addEventListener('load', runTest
);
37 <div id=
"dragme" draggable=
"true">To test, try dragging this div around. It shouldn't crash, the div should disappear and PASS should appear.
</div>
38 <div id=
"console"></div>