Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: LayoutTests/editing/selection/caret-in-textarea-auto.html

Issue 302433015: Use correct offset when attribute auto is present (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to latest master Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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;">&#x05d0;!</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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698