Reviewed by beth and geoff
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Mar 2006 17:34:20 +0000 (17:34 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Mar 2006 17:34:20 +0000 (17:34 +0000)
        * editing/selection/6476-expected.checksum: Added.
        * editing/selection/6476-expected.png: Added.
        * editing/selection/6476-expected.txt: Added.
        * editing/selection/6476.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13491 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/editing/selection/6476.html [new file with mode: 0644]

index f67874d5d91166464a9ecd7a5eacbfda7563e9fd..18e76cf497f2ae5f607584c93efc3b182bb0f24d 100644 (file)
@@ -1,3 +1,12 @@
+2006-03-27  Justin Garcia  <justin.garcia@apple.com>
+
+        Reviewed by beth and geoff
+
+        * editing/selection/6476-expected.checksum: Added.
+        * editing/selection/6476-expected.png: Added.
+        * editing/selection/6476-expected.txt: Added.
+        * editing/selection/6476.html: Added.
+
 2006-03-27  Graham Dennis  <Graham.Dennis@gmail.com>
 
         Reviewed by darin
diff --git a/LayoutTests/editing/selection/6476.html b/LayoutTests/editing/selection/6476.html
new file mode 100644 (file)
index 0000000..44ab5e6
--- /dev/null
@@ -0,0 +1,22 @@
+<html>
+<head>
+<title>An upstream caret can be impossible to create</title>
+<script>
+function runTest() {
+    if (window.layoutTestController) {
+        var e = document.getElementById("clickme");
+        var x = e.offsetLeft + e.offsetWidth + 15;
+        var y = e.offsetTop + e.offsetHeight / 2;
+        
+        eventSender.mouseMoveTo(x, y);
+        eventSender.mouseDown();
+        eventSender.mouseUp();
+    }
+}
+</script>
+</head>
+<body onLoad="runTest();">
+<div style="width:250px;" id="test" contenteditable="true">Try to create a caret after this lin<span id="clickme">e</span> <span></span>thisshouldbeonthesecondline </div>
+<hr>
+<p>This is a testcase for <a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=6476">http://bugzilla.opendarwin.org/show_bug.cgi?id=6476</a>.  Creating an upstream caret with the mouse was impossible if the upstream and downstream carets were separated only by unrendered content.</p><p>This test uses the eventSender to do mouse clicks.  To run it manually, click in the space after all the text on the first line in the above editable region.  Clicking should create a caret after the first space after the 'e'.</p>
+</body></html>
\ No newline at end of file