3 <script type=
"text/javascript">
6 if (!window
.testRunner
|| !window
.eventSender
)
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();
24 <body onload=
"test()">
25 <img id=
"dragMe" src='resources/pdf_test_landscape.pdf'
>
27 This test checks that dragging a pdf doesn't crash the browser.