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

Unified Diff: LayoutTests/editing/selection/mixed-editability-3.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/mixed-editability-3.html
diff --git a/LayoutTests/editing/selection/mixed-editability-3.html b/LayoutTests/editing/selection/mixed-editability-3.html
index bf969156f0ff7f12c9fc0d6dfb401056a4d43767..39fe162a3dd30f960c9cb5240ad4096916de6403 100644
--- a/LayoutTests/editing/selection/mixed-editability-3.html
+++ b/LayoutTests/editing/selection/mixed-editability-3.html
@@ -1,32 +1,20 @@
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-<script src="./resources/js-test-selection-shared.js"></script>
+<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>
<div contenteditable="true" id="test">
-<span id="e1">1 editable</span>
+editable
<table border="1" contenteditable="false"><tr><td contenteditable="true">editable</td></tr></table>
-<span id="e2">2 editable</span>
+editable
</div>
<script>
-description('This tests moving the caret forward through content of mixed editability. The caret should not be in non-editable piece.');
+var e = document.getElementById("test");
+var s = window.getSelection();
-testCaretMotion({
- 'direction': 'both',
- 'granularity': 'line',
- 'origin': 'e1',
- 'target': 'e2',
-});
+s.setPosition(e, 0);
-testCaretMotion({
- 'direction': 'both',
- 'granularity': 'line',
- 'origin': 'e1',
- 'originOffset': -1,
- 'target': 'e2',
- 'targetOffset': -1,
-});
-
-if (window.testRunner)
- $('test').outerHTML = '';
+s.modify("move", "forward", "line");
</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
« no previous file with comments | « LayoutTests/editing/selection/4889598-expected.txt ('k') | LayoutTests/editing/selection/mixed-editability-3-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698