Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / selection-paste-crash.html
blob723aa0bf981a65e747462043ff055b8f93da77f2
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>This test passes if middle mouse clicking in the rectangle below does not crash.</p>
5 <iframe id="iframe" src='resources/selection-paste-crash.html'></iframe>
6 <script>
7 var iframe = document.getElementById("iframe");
9 function removeIframe()
11 document.body.removeChild(iframe);
14 window.onload = function() {
15 if (!window.testRunner || !window.eventSender)
16 return;
17 testRunner.dumpAsText();
19 var x = iframe.offsetLeft + iframe.offsetWidth / 2;
20 var y = iframe.offsetTop + iframe.offsetHeight / 2;
21 eventSender.mouseMoveTo(x, y);
22 eventSender.mouseDown(1);
23 eventSender.mouseUp(1);
25 </script>
26 </body>
27 </html>