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

Unified Diff: LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line.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
« no previous file with comments | « no previous file | LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line.html
diff --git a/LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line.html b/LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line.html
new file mode 100644
index 0000000000000000000000000000000000000000..7df24c1e0775a73920026acc6bff7ac63935ea37
--- /dev/null
+++ b/LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line.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" contenteditable="true">ABC<br>ABC</div>
+</body>
« no previous file with comments | « no previous file | LayoutTests/editing/selection/block-cursor-overtype-mode-end-of-line-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698