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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/outdent/outdent_nested_lists.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
OLDNEW
(Empty)
1 <!doctype html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <script src="../../assert_selection.js"></script>
5 <div id="log"></div>
6 <script>
7 test(() => assert_selection(
8 [
9 '<ol contenteditable>',
10 '<li>one</li>',
11 '<ol>',
12 '<li>two</li>',
13 '<li>^three|</li>',
14 '</ol>',
15 '<li>four</li>',
16 '</ol>',
17 ].join(''),
18 'Outdent',
19 [
20 '<ol contenteditable>',
21 '<li>one</li>',
22 '<ol><li>two</li></ol>',
23 '<li>^three|</li>',
24 '<li>four</li>',
25 '</ol>',
26 ].join('')), 'Nested list at two');
27
28 test(() => assert_selection(
29 [
30 '<ol contenteditable>',
31 '<ol><li>^one|</li></ol>',
32 '<li>two</li>',
33 '<li>three</li>',
34 '<li>four</li>',
35 '</ol>',
36 ].join(''),
37 'Outdent',
38 [
39 '<ol contenteditable>',
40 '<li>^one|</li>',
41 '<li>two</li>',
42 '<li>three</li>',
43 '<li>four</li>',
44 '</ol>',
45 ].join('')), 'Nested list at one');
46
47 test(() => assert_selection(
48 [
49 '<ol contenteditable>',
50 '<ol>',
51 '<li>one</li>',
52 '<li>^two|</li>',
53 '<li>three</li>',
54 '</ol>',
55 '<li>four</li>',
56 '</ol>',
57 ].join(''),
58 'Outdent',
59 [
60 '<ol contenteditable>',
61 '<ol><li>one</li></ol>',
62 '<li>^two|</li>',
63 '<ol>',
64 '<li>three</li>',
65 '</ol>',
66 '<li>four</li>',
67 '</ol>',
68 ].join('')), 'Nested list at one to three');
69
70 test(() => assert_selection(
71 [
72 '<ol contenteditable>',
73 '<ol><li>one</li><li>^two</li></ol>',
74 '<ul><li>three</li></ul>',
75 '<ol><li>four|</li></ol>',
76 '</ol>',
77 ].join(''),
78 'Outdent',
79 [
80 '<ol contenteditable>',
81 '<ol><li>one</li></ol>',
82 '<li>^two</li>',
83 '<li>three</li>',
84 '<li>four|</li>',
85 '</ol>',
86 ].join('')), 'Nested list at one to two, three(ul), and four');
87 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698