10 background-image: url('resources/grid-transparent.png');
11 -webkit-user-drag: element;
15 <!-- Simulate dragging an element and dump the generated drag image.
16 The expected result should be the same as the input image,
17 without seeing a red background. -->
18 <div id=
"image"></div>
22 testRunner
.dumpDragImage();
24 var image
= document
.getElementById('image');
25 var startX
= image
.offsetLeft
+ image
.offsetWidth
/ 2;
26 var startY
= image
.offsetTop
+ image
.offsetHeight
/ 2;
27 var positionX
= startX
+ image
.offsetWidth
;
28 var positionY
= startY
+ image
.offsetHeight
;
30 eventSender
.dragMode
= true;
31 eventSender
.mouseMoveTo(startX
, startY
);
32 eventSender
.mouseDown();
33 eventSender
.mouseMoveTo(positionX
, positionY
);
34 eventSender
.mouseUp();
37 if (!window
.testRunner
|| !window
.eventSender
) {
38 document
.write("This test does not work in manual mode.");