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

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: Fix compilation issue 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
« no previous file with comments | « no previous file | LayoutTests/editing/selection/caret-in-textarea-auto-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <textarea id="textarea" dir="auto" style="font-size: 20px; width: 20ex; border: solid thin black; padding: 10px;">&#x05d0;!</textarea>
4 <script>
5 description('Test caret position in a textarea with direction auto and having RT L text. When entering a LTR text caret position is changed.');
6 var textarea = document.getElementById('textarea');
7 textarea.focus();
8 var caretRect = textInputController.firstRectForCharacterRange(0, 0);
9
10 window.testRunner.execCommand('MoveToEndOfLine');
11 document.execCommand('InsertLineBreak');
12 document.execCommand('InsertText', false, 'hell');
13
14 var caretRect1 = textInputController.firstRectForCharacterRange(1, 0);
15 shouldNotBe('caretRect[0]', 'caretRect1[0]');
16 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/selection/caret-in-textarea-auto-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698