6 image-rendering: pixelated;
10 <!-- Simulate dragging an image and dump the generated drag image. -->
11 <img id=
"image" src=
"resources/grid-small.png">
15 testRunner
.dumpDragImage();
17 var image
= document
.getElementById('image');
18 var startX
= image
.offsetLeft
+ image
.offsetWidth
/ 2;
19 var startY
= image
.offsetTop
+ image
.offsetHeight
/ 2;
20 var positionX
= startX
+ image
.offsetWidth
;
21 var positionY
= startY
+ image
.offsetHeight
;
23 eventSender
.dragMode
= true;
24 eventSender
.mouseMoveTo(startX
, startY
);
25 eventSender
.mouseDown();
26 eventSender
.mouseMoveTo(positionX
, positionY
);
27 eventSender
.mouseUp();
30 if (!window
.testRunner
|| !window
.eventSender
) {
31 document
.write("This test does not work in manual mode.");