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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/outdent-nested-lists-1.html

Issue 2010323002: Convert execCommand/outdent-nested-lists-*.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-05-31T10:35:27 Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/execCommand/outdent-nested-lists-1-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <body>
3 <div>
4 This tests outdenting "three". You should see 2 and 3 before "three" and "four" respectively.
5 <ol id="e" contenteditable="true">
6 <li>one</li>
7 <ol><li>two</li>
8 <li id="test">three</li></ol>
9 <li>four</li>
10 </ol>
11 </div>
12
13 <ul>
14 <li>Before:<span id="c1"></span></li>
15 <li>After:<span id="c2"></span></li>
16 </ul>
17
18 <script type="text/javascript">
19
20 if (window.testRunner) {
21 testRunner.dumpEditingCallbacks();
22 testRunner.dumpAsText();
23 }
24
25 var e = document.getElementById('e');
26
27 document.getElementById('c1').appendChild(document.createTextNode(e.innerHTML));
28
29 var s = window.getSelection();
30 var r = document.createRange();
31 r.selectNode(document.getElementById('test'));
32 s.removeAllRanges();
33 s.addRange(r);
34 document.execCommand("Outdent", false, "");
35
36 document.getElementById('c2').appendChild(document.createTextNode(e.innerHTML));
37
38 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/execCommand/outdent-nested-lists-1-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698