Chromium Code Reviews| Index: LayoutTests/fast/events/drag-extra-mouse-down-no-crash.html |
| diff --git a/LayoutTests/fast/events/drag-extra-mouse-down-no-crash.html b/LayoutTests/fast/events/drag-extra-mouse-down-no-crash.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5808f0d0b39810168f36e270f6e51dfbf7793e27 |
| --- /dev/null |
| +++ b/LayoutTests/fast/events/drag-extra-mouse-down-no-crash.html |
| @@ -0,0 +1,26 @@ |
| +<p> |
|
jochen (gone - plz use gerrit)
2015/01/12 12:20:25
<!DOCTYPE html>
sof
2015/01/12 22:27:56
Done.
|
| +Ill-formed uses of eventSender.mouseDown() while drag is under way should not crash. |
| +</p> |
| +<script> |
| +if (window.testRunner) { |
| + testRunner.dumpAsText(); |
| + testRunner.waitUntilDone(); |
| +} |
| + |
| +function runTest() { |
| + if (!window.eventSender) |
| + return; |
| + |
| + eventSender.beginDragWithFiles([""]); |
| + var x = document.getElementById("link").offsetLeft; |
| + var y = document.getElementById("link").offsetTop; |
| + eventSender.mouseMoveTo(x, y); |
| + eventSender.mouseDown(); |
| + eventSender.mouseMoveTo(x, y + 1); |
| + eventSender.mouseUp(); |
| + testRunner.notifyDone(); |
| +} |
| + |
| +window.onload = runTest; |
| +</script> |
| +<a href="data:text/html," id="link">PASS(no crash)</a> |