Title: [118604] trunk/LayoutTests
Revision
118604
Author
[email protected]
Date
2012-05-25 20:20:17 -0700 (Fri, 25 May 2012)

Log Message

cursor gets trapped when border-style: dashed is used
https://bugs.webkit.org/show_bug.cgi?id=37693

Patch by Sukolsak Sakshuwong <[email protected]> on 2012-05-25
Reviewed by Tony Chang.

This bug has been fixed. Add a test to make sure that it won't regress.

* editing/selection/move-by-line-006-expected.txt: Added.
* editing/selection/move-by-line-006.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (118603 => 118604)


--- trunk/LayoutTests/ChangeLog	2012-05-26 03:09:34 UTC (rev 118603)
+++ trunk/LayoutTests/ChangeLog	2012-05-26 03:20:17 UTC (rev 118604)
@@ -1,3 +1,15 @@
+2012-05-25  Sukolsak Sakshuwong  <[email protected]>
+
+        cursor gets trapped when border-style: dashed is used
+        https://bugs.webkit.org/show_bug.cgi?id=37693
+
+        Reviewed by Tony Chang.
+
+        This bug has been fixed. Add a test to make sure that it won't regress.
+
+        * editing/selection/move-by-line-006-expected.txt: Added.
+        * editing/selection/move-by-line-006.html: Added.
+
 2012-05-25  Tony Chang  <[email protected]>
 
         implement new negative flexing algorithm

Added: trunk/LayoutTests/editing/selection/move-by-line-006-expected.txt (0 => 118604)


--- trunk/LayoutTests/editing/selection/move-by-line-006-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/editing/selection/move-by-line-006-expected.txt	2012-05-26 03:20:17 UTC (rev 118604)
@@ -0,0 +1,10 @@
+| "
+aaaa aaaa
+"
+| <span>
+|   style="border-style: dashed; background-color: #000"
+|   "
+aaaa aaaa aaaa <#selection-caret>aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa
+aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa"
+| "
+"

Added: trunk/LayoutTests/editing/selection/move-by-line-006.html (0 => 118604)


--- trunk/LayoutTests/editing/selection/move-by-line-006.html	                        (rev 0)
+++ trunk/LayoutTests/editing/selection/move-by-line-006.html	2012-05-26 03:20:17 UTC (rev 118604)
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<body>
+<p>To manually run the test, put the cursor at the beginning of the next paragraph,
+and then press the down arrow key. The caret should go to the next line,
+not the beginning of the dashed section.</p>
+
+<div id="result" style="font-family: Ahem; font-size: 16px; color: #fcc; width:400px;">
+aaaa aaaa
+<span style="border-style: dashed; background-color: #000">
+aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa
+aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa aaaa</span>
+</div>
+<script src=""
+<script>
+document.designMode = 'on';
+
+var selection = window.getSelection();
+var result = document.getElementById('result');
+selection.setPosition(result, 0);
+selection.modify('move', 'forward', 'line');
+
+Markup.dump('result');
+</script>
+</body>
+</html>
\ No newline at end of file
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to