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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/indent-list-item.html

Issue 2171223002: Convert editing/execCommand/indent-list-item.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-22T16:39:19 Created 4 years, 5 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/platform/linux/editing/execCommand/indent-list-item-expected.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
1 <script> 5 <script>
2 if (window.testRunner) 6 test(() => assert_selection(
3 testRunner.dumpEditingCallbacks(); 7 '<div contenteditable><ul><li>Foo</li><li>|Bar</li><li>Baz</li></ul></div>',
8 'indent',
9 '<div contenteditable><ul><li>Foo</li><ul><li>|Bar</li></ul><li>Baz</li></ul ></div>'),
10 'Indent a list item in middle of list');
4 </script> 11 </script>
5 <div id="description">This test uses the execCommand to Outdent the text below.< /div>
6 <br>
7 <div contenteditable="true">
8 <ul>
9 <li>Foo</li>
10 <li id="item1">Bar</li>
11 <li>Baz</li>
12 </ul>
13 </div>
14 <script>
15 var s = window.getSelection();
16 var p1 = document.getElementById("item1");
17 s.collapse(p1, 0);
18 document.execCommand("Indent", false, "");
19 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/platform/linux/editing/execCommand/indent-list-item-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698