Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / drop-file-svg.html
blob736779c2f4c393953be99b4e826e158e60368f4e
1 <html>
2 <head>
3 <script>
5 function moveMouseToCenterOfElement(element)
7 var centerX = element.offsetLeft + element.offsetWidth / 2;
8 var centerY = element.offsetTop + element.offsetHeight / 2;
9 eventSender.mouseMoveTo(centerX, centerY);
12 function test()
14 if (window.testRunner)
15 testRunner.dumpAsText();
16 eventSender.beginDragWithFiles(["fakefile"]);
17 moveMouseToCenterOfElement(document.getElementById("target"));
18 eventSender.mouseUp();
21 </script>
22 </head>
23 <p>A crash reproducing test using DRT. The test passes if it doesn't crash.</p>
24 <body onload="test()">
25 <iframe id="target" src="resources/drop-file-svg.svg"></iframe>
26 </body>
27 </html>