summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/drag-image.html
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:30:52 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:30:52 -0800
commit8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (patch)
tree11425ea0b299d6fb89c6d3618a22d97d5bf68d0f /WebCore/manual-tests/drag-image.html
parent648161bb0edfc3d43db63caed5cc5213bc6cb78f (diff)
downloadexternal_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.zip
external_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.tar.gz
external_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.tar.bz2
auto import from //depot/cupcake/@135843
Diffstat (limited to 'WebCore/manual-tests/drag-image.html')
-rw-r--r--WebCore/manual-tests/drag-image.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/WebCore/manual-tests/drag-image.html b/WebCore/manual-tests/drag-image.html
new file mode 100644
index 0000000..580d5e5
--- /dev/null
+++ b/WebCore/manual-tests/drag-image.html
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<script>
+function debug(str) {
+ var c = document.getElementById('console')
+ c.appendChild(document.createTextNode(str + '\n'));
+}
+
+var i = new Image()
+i.src ="resources/webkit-background.png";
+
+function dragStartHandler() {
+ event.dataTransfer.setDragImage(i, 10, 10);
+}
+
+</script>
+</head>
+<body onload="runTests();">
+<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>
+<img src="resources/webkit-background.png">
+<div ondragstart="dragStartHandler()" style="-khtml-user-select:none; -khtml-user-drag:element;">Try dragging me around!</div>
+<pre id="console">
+</pre>
+</body>
+</html>