Index: LayoutTests/editing/selection/caret-in-textarea-auto.html |
diff --git a/LayoutTests/editing/selection/caret-in-textarea-auto.html b/LayoutTests/editing/selection/caret-in-textarea-auto.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0ec66b3197718cecdf682f581bd17cbe56c2bb93 |
--- /dev/null |
+++ b/LayoutTests/editing/selection/caret-in-textarea-auto.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE html> |
+<html> |
+<body> |
+<p> |
+This tests that typing in a textarea with direction auto and having RTL text. When entering a LTR text caret position is changed. |
+To test manually, click at the end of RTL text and press enter. Then enter text, caret should move along with the text. |
+</p> |
+<textarea id="textarea" dir="auto" style="font-size: 20px; width: 20ex; border: solid thin black; padding: 10px;">א!</textarea> |
+<script src="../editing.js"></script> |
+<script> |
+var textarea = document.getElementById('textarea'); |
+textarea.focus(); |
+window.testRunner.execCommand('MoveToEndOfLine'); |
+document.execCommand('InsertLineBreak'); |
+document.execCommand('InsertText', false, 'hello!'); |
+caretRect = textInputController.firstRectForCharacterRange(1, 0); |
leviw_travelin_and_unemployed
2014/05/28 17:42:31
Can we test this programmatically instead of using
Habib Virji
2014/05/29 07:58:26
A valid point will correct it. Was planning to use
Habib Virji
2014/05/29 11:31:51
Done.
|
+</script> |
+</body> |
+</html> |