Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / images / drag-pdf-as-image.html
blob681893e8067d901a2fcf58094c06a141f5ba6ca4
1 <html>
2 <head>
3 <script type="text/javascript">
4 function test() {
6 if (!window.testRunner || !window.eventSender)
7 return;
9 testRunner.dumpAsText();
11 var dragMe = document.getElementById("dragMe");
12 var startX = dragMe.offsetLeft + (dragMe.offsetWidth / 2);
13 var startY = dragMe.offsetTop + (dragMe.offsetTop / 2);
14 var endX = startX + 100;
15 var endY = startY + 100;
17 eventSender.mouseMoveTo(startX, startY);
18 eventSender.mouseDown();
19 eventSender.mouseMoveTo(endX, endY);
20 eventSender.mouseUp();
22 </script>
23 </head>
24 <body onload="test()">
25 <img id="dragMe" src='resources/pdf_test_landscape.pdf'>
26 <div>
27 This test checks that dragging a pdf doesn't crash the browser.
28 </div>
29 </body>
30 </html>