blob: 328ca98e6346357064be9b289b3499e4e93e69f2 [file] [log] [blame]
Ben Murdoche69819b2013-07-17 14:56:49 +01001<!DOCTYPE html>
Torne (Richard Coles)5c87bf82012-11-14 11:46:17 +00002<html>
3<head>
4<script>
5function debug(str) {
6 var c = document.getElementById('console')
7 c.appendChild(document.createTextNode(str + '\n'));
8}
9
10var i = new Image()
11i.src ="resources/webkit-background.png";
12
13function dragStartHandler() {
14 event.dataTransfer.setDragImage(i, 10, 10);
15}
16
17</script>
18</head>
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">
Ben Murdoche69819b2013-07-17 14:56:49 +010022<div ondragstart="dragStartHandler()" draggable="true">Try dragging me around!</div>
Torne (Richard Coles)5c87bf82012-11-14 11:46:17 +000023<pre id="console">
24</pre>
25</body>
26</html>