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

Unified Diff: LayoutTests/editing/selection/mixed-editability-3.html

Issue 14794012: Make contenteditable="false" element as atomic node for selection motion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-05-17T17:08 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/mixed-editability-3.html
diff --git a/LayoutTests/editing/selection/mixed-editability-3.html b/LayoutTests/editing/selection/mixed-editability-3.html
index 39fe162a3dd30f960c9cb5240ad4096916de6403..0465bd5ec6232c76bb5c7cae7e07400fccdebdd2 100644
--- a/LayoutTests/editing/selection/mixed-editability-3.html
+++ b/LayoutTests/editing/selection/mixed-editability-3.html
@@ -1,20 +1,19 @@
-<script>
-if (window.testRunner)
- testRunner.dumpEditingCallbacks();
-</script>
-<p>This tests moving the caret forward through content of mixed editability. The caret should move down one line from the editable piece to the editable piece that's embedded in a non-editable piece.</p>
+<script src="../../fast/js/resources/js-test-pre.js"></script>
+<script src="./resources/js-test-selection-shared.js"></script>
<div contenteditable="true" id="test">
-editable
+<span id="e1">1 editable</span>
<table border="1" contenteditable="false"><tr><td contenteditable="true">editable</td></tr></table>
-editable
+<span id="e2">2 editable</span>
</div>
<script>
-var e = document.getElementById("test");
-var s = window.getSelection();
+description('This tests moving the caret forward through content of mixed editability. The caret should not be in non-editable piece.');
-s.setPosition(e, 0);
+testCaretMotion('both', 'line', 1, 'e1', 0, 'e2', 0);
ojan 2013/05/22 02:25:20 These tests are kind of hard to read. Can you inst
yosin_UTC9 2013/05/22 07:54:12 Done.
+testCaretMotion('both', 'line', 1, 'e1', -1, 'e2', -1);
-s.modify("move", "forward", "line");
+if (window.testRunner)
+ $('test').outerHTML = '';
</script>
+<script src="../../fast/js/resources/js-test-post.js"></script>

Powered by Google App Engine
This is Rietveld 408576698