1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <style> * { margin: 0px; padding: 0px; } </style>
9 document.getElementById('console').appendChild(document.createTextNode(msg + '\n'));
14 if (window.layoutTestController) {
15 layoutTestController.waitUntilDone();
16 layoutTestController.dumpAsText();
19 log("layoutTestController is not available");
23 function testDragAndMove()
25 var draggable = document.getElementById("draggableForDiv");
27 var startX = draggable.offsetLeft + 5;
28 var startY = draggable.offsetTop + 5;
30 eventSender.dragMode = false;
32 // Grab the draggable node
33 eventSender.mouseMoveTo(startX,startY);
34 eventSender.mouseDown();
35 // Then drag it. OK not to crash.
36 eventSender.mouseMoveTo(startX + 10, startY + 10);
37 eventSender.mouseMoveTo(startX + 20, startY + 20);
38 eventSender.mouseUp();
39 document.getElementById("test").style.display = "none";
41 layoutTestController.notifyDone();
45 <body onload="test()">
47 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=41695">Bug 41695</a>. It is OK not to crash</p>
48 <b draggable="true" id="draggableForDiv">dragme</b>
50 <pre id="console"></pre>