Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/editing/execCommand/outdent/outdent_nested_lists.html |
| diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/outdent/outdent_nested_lists.html b/third_party/WebKit/LayoutTests/editing/execCommand/outdent/outdent_nested_lists.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..96628589d47612337618eb59973dca487f1260cc |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/editing/execCommand/outdent/outdent_nested_lists.html |
| @@ -0,0 +1,32 @@ |
| +<!doctype html> |
| +<script src="../../../resources/testharness.js"></script> |
| +<script src="../../../resources/testharnessreport.js"></script> |
| +<script src="../../assert_selection.js"></script> |
| +<div id="log"></div> |
| +<script> |
| +test(() => { |
| + assert_selection( |
| + '<ol contenteditable><li>one</li><ol><li>two</li></ol><li>^three|</li><li>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.
|
| + 'Outdent', |
| + '<ol contenteditable><li>one</li><ol><li>two</li></ol><li>^three|</li><li>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.
|
| + 'Nested list at two'); |
| + |
| + assert_selection( |
| + '<ol contenteditable><ol><li>^one|</li></ol><li>two</li><li>three</li><li>four</li></ol>', |
| + 'Outdent', |
| + '<ol contenteditable><li>^one|</li><li>two</li><li>three</li><li>four</li></ol>', |
| + 'Nested list at one'); |
| + |
| + assert_selection( |
| + '<ol contenteditable><ol><li>one</li><li>^two|</li><li>three</li><li>four</li></ol></ol>', |
| + 'Outdent', |
| + '<ol contenteditable><ol><li>one</li></ol><li>^two|</li><ol><li>three</li><li>four</li></ol></ol>', |
| + 'Nested list at one to four'); |
| + |
| + assert_selection( |
| + '<ol contenteditable><ol><li>one</li><li>^two</li></ol><ul><li>three</li></ul><ol><li>four|</li></ol></ol>', |
| + 'Outdent', |
| + '<ol contenteditable><ol><li>one</li></ol><li>^two</li><li>three</li><li>four|</li></ol>', |
| + 'Nested list at one to two, three(ul), four'); |
| +}); |
| +</script> |