6 var c
= document
.getElementById('console')
7 c
.appendChild(document
.createTextNode(str
+ '\n'));
11 i
.src
="resources/webkit-background.png";
13 function dragStartHandler() {
14 event
.dataTransfer
.setDragImage(i
, 10, 10);
19 <body onload=
"runTests();">
20 <p>This tests that setting the drag image works. If this is successful, the drag icon when dragging the text below around should look like the image below.
</p>
21 <img src=
"resources/webkit-background.png">
22 <div ondragstart=
"dragStartHandler()" draggable=
"true">Try dragging me around!
</div>