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

Unified Diff: LayoutTests/editing/selection/4889598.html

Issue 15732019: Revert 151179 "On IE and FireFox, they treats contenteditable="f..." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/4889598.html
diff --git a/LayoutTests/editing/selection/4889598.html b/LayoutTests/editing/selection/4889598.html
new file mode 100644
index 0000000000000000000000000000000000000000..435e8da9a294ccee2b6c2e92bdcd000ca61ad45f
--- /dev/null
+++ b/LayoutTests/editing/selection/4889598.html
@@ -0,0 +1,22 @@
+<p>This tests for a bug moving down by a line from a line just above a ToDo, and moving up by a line from just below a ToDo.</p>
+<div id="div" contenteditable="true">
+<div id="above">Click anywhere in this line and move down.</div>
+<table border="1" contenteditable="false"><tr><td>The caret <span style="color: blue;" contenteditable="true">should</span> always go into the editable region.</td></tr></table>
+<div id="below">Click anywhere in this line and move up.</div>
+</div>
+
+<script>
+if (window.testRunner)
+ window.testRunner.dumpEditingCallbacks();
+var selection = window.getSelection();
+var above = document.getElementById("above").firstChild;
+selection.setPosition(above, 0);
+selection.modify("move", "forward", "line");
+selection.setPosition(above, above.length);
+selection.modify("move", "forward", "line");
+var below = document.getElementById("below").firstChild;
+selection.setPosition(below, 0);
+selection.modify("move", "backward", "line");
+selection.setPosition(below, below.length);
+selection.modify("move", "backward", "line");
+</script>

Powered by Google App Engine
This is Rietveld 408576698