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

Unified Diff: LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line-rtl.html

Issue 437843002: Invalid caret at the end of line in overtype mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed comments Created 6 years, 4 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/block-cursor-overtype-mode-end-of-line-rtl.html
diff --git a/LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line-rtl.html b/LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line-rtl.html
new file mode 100644
index 0000000000000000000000000000000000000000..94f16e404e6dfc7dc98f15c67657066425595f9e
--- /dev/null
+++ b/LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line-rtl.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script>
+if (window.testRunner)
+ internals.toggleOverwriteModeEnabled(document);
+
+function runTest() {
+ var element = (document.getElementById("editableContent")).firstChild;
+ getSelection().collapse(element, element.length);
+}
+</script>
+<body onload="runTest();">
+ <!-- We want to test block cursor appearance at the end of lines that aren't the end of the editable element. -->
+ <div id="editableContent" style="direction: rtl;" contenteditable="true">&#x05e9;&#x05d3;&#x05df;ABC<br>ABC</div>
+</body>

Powered by Google App Engine
This is Rietveld 408576698