summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/caret-image.html
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/manual-tests/caret-image.html')
-rw-r--r--WebCore/manual-tests/caret-image.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/WebCore/manual-tests/caret-image.html b/WebCore/manual-tests/caret-image.html
new file mode 100644
index 0000000..a6dff5e
--- /dev/null
+++ b/WebCore/manual-tests/caret-image.html
@@ -0,0 +1,9 @@
+<p>
+Test to see if caret works correctly to the right of an image.
+If the test is successful, the caret will look thin as usual.
+If the test fails, the caret will be a big black box the size of the image.
+</p>
+
+<div id="test" contenteditable="true">free<img src="resources/webkit-background.png">lunch</div>
+
+<script>window.getSelection().setPosition(document.getElementById("test"), 2);</script>