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

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

Issue 541823003: Move caret to correct position when dir=auto (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Compile fix for Windows Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
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
deleted file mode 100644
index 2c3ad14965c6e99c96c0e477f3a08d3138ac3612..0000000000000000000000000000000000000000
--- a/LayoutTests/editing/selection/caret-in-textarea-auto.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/js-test.js"></script>
-<textarea id="textarea" dir="auto" style="font-size: 20px; width: 20ex; border: solid thin black; padding: 10px;">&#x05d0;!</textarea>
-<script>
-description('Test caret position in a textarea with direction auto and having RTL text. When entering a LTR text caret position is changed.');
-var textarea = document.getElementById('textarea');
-textarea.focus();
-var caretRect = textInputController.firstRectForCharacterRange(0, 0);
-
-window.testRunner.execCommand('MoveToEndOfLine');
-document.execCommand('InsertLineBreak');
-document.execCommand('InsertText', false, 'hell');
-
-var caretRect1 = textInputController.firstRectForCharacterRange(1, 0);
-shouldNotBe('caretRect[0]', 'caretRect1[0]');
-</script>

Powered by Google App Engine
This is Rietveld 408576698