| Index: third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-inner-list.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-inner-list.html b/third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-inner-list.html
|
| index f7d4fd8e867d41623572c8fd71c78972267a1f4f..5b7fbd02e552f5cbb50d7f72b45ca3b1f05e1443 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-inner-list.html
|
| +++ b/third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-inner-list.html
|
| @@ -1,21 +1,31 @@
|
| -<script src="../../resources/dump-as-markup.js"></script>
|
| -<body>
|
| -<div id="test" contenteditable>
|
| -<ul>
|
| - <li>hello</li>
|
| - <ol>
|
| - <li>world</li>
|
| - </ol>
|
| - <li>webkit</li>
|
| -</ul>
|
| -</div>
|
| +<!doctype html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../assert_selection.js"></script>
|
| <script>
|
| -Markup.description('This tests switching an unordered list with a nested list to an ordered list.');
|
| -
|
| -var test = document.getElementById('test');
|
| -window.getSelection().selectAllChildren(test);
|
| -document.execCommand('InsertOrderedList', false, null);
|
| -
|
| -Markup.dump('test');
|
| +test(() => assert_selection(
|
| + [
|
| + '<div contenteditable>',
|
| + '<ul>',
|
| + '<li>^hello</li>',
|
| + '<ol>',
|
| + '<li>world</li>',
|
| + '</ol>',
|
| + '<li>webkit|</li>',
|
| + '</ul>',
|
| + '</div>',
|
| + ].join(''),
|
| + 'insertOrderedList',
|
| + [
|
| + '<div contenteditable>',
|
| + '<ol>',
|
| + '<li>^hello</li>',
|
| + '<ol>',
|
| + '<li>world</li>',
|
| + '</ol>',
|
| + '<li>webkit|</li>',
|
| + '</ol>',
|
| + '</div>',
|
| + ].join('')),
|
| + 'switching an unordered list with a nested list to an ordered list.');
|
| </script>
|
| -</body>
|
|
|