OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <p> |
| 3 Ill-formed uses of eventSender.mouseDown() while drag is under way should not cr
ash. |
| 4 </p> |
| 5 <script> |
| 6 if (window.testRunner) { |
| 7 testRunner.dumpAsText(); |
| 8 testRunner.waitUntilDone(); |
| 9 } |
| 10 |
| 11 function runTest() { |
| 12 if (!window.eventSender) |
| 13 return; |
| 14 |
| 15 eventSender.beginDragWithFiles([""]); |
| 16 var x = document.getElementById("link").offsetLeft; |
| 17 var y = document.getElementById("link").offsetTop; |
| 18 eventSender.mouseMoveTo(x, y); |
| 19 eventSender.mouseDown(); |
| 20 eventSender.mouseMoveTo(x, y + 1); |
| 21 eventSender.mouseUp(); |
| 22 testRunner.notifyDone(); |
| 23 } |
| 24 |
| 25 window.onload = runTest; |
| 26 </script> |
| 27 <a href="data:text/html," id="link">PASS(no crash)</a> |
OLD | NEW |