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

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-27T13:22:16 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(() => {
8 assert_selection(
9 '<ol contenteditable><li>one</li><ol><li>two</li></ol><li>^three|</li><l i>four</li></ol>',
yoichio 2016/05/30 02:30:50 |<ol><li>two</li></ol><li>^three|</li>| should be
yosin_UTC9 2016/05/31 01:42:32 Fixed.
10 'Outdent',
11 '<ol contenteditable><li>one</li><ol><li>two</li></ol><li>^three|</li><l i>four</li></ol>',
yoichio 2016/05/30 02:30:50 Could you "indent" these expect and input for read
yosin_UTC9 2016/05/31 01:42:32 Done. It helps me to debug test cases.
12 'Nested list at two');
13
14 assert_selection(
15 '<ol contenteditable><ol><li>^one|</li></ol><li>two</li><li>three</li><l i>four</li></ol>',
16 'Outdent',
17 '<ol contenteditable><li>^one|</li><li>two</li><li>three</li><li>four</l i></ol>',
18 'Nested list at one');
19
20 assert_selection(
21 '<ol contenteditable><ol><li>one</li><li>^two|</li><li>three</li><li>fou r</li></ol></ol>',
22 'Outdent',
23 '<ol contenteditable><ol><li>one</li></ol><li>^two|</li><ol><li>three</l i><li>four</li></ol></ol>',
24 'Nested list at one to four');
25
26 assert_selection(
27 '<ol contenteditable><ol><li>one</li><li>^two</li></ol><ul><li>three</li ></ul><ol><li>four|</li></ol></ol>',
28 'Outdent',
29 '<ol contenteditable><ol><li>one</li></ol><li>^two</li><li>three</li><li >four|</li></ol>',
30 'Nested list at one to two, three(ul), four');
31 });
32 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698