OLD | NEW |
---|---|
(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> | |
OLD | NEW |