OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <body> | |
4 <p> | |
5 This tests that typing in a textarea with direction auto and having RTL text. Wh en entering a LTR text caret position is changed. | |
6 To test manually, click at the end of RTL text and press enter. Then enter text, caret should move along with the text. | |
7 </p> | |
8 <textarea id="textarea" dir="auto" style="font-size: 20px; width: 20ex; border: solid thin black; padding: 10px;">א!</textarea> | |
9 <script src="../editing.js"></script> | |
10 <script> | |
11 var textarea = document.getElementById('textarea'); | |
12 textarea.focus(); | |
13 window.testRunner.execCommand('MoveToEndOfLine'); | |
14 document.execCommand('InsertLineBreak'); | |
15 document.execCommand('InsertText', false, 'hello!'); | |
16 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.
| |
17 </script> | |
18 </body> | |
19 </html> | |
OLD | NEW |