| Index: third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-orphaned-li.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-orphaned-li.html b/third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-orphaned-li.html
|
| index 8c87a29886cc80ea3aa11954b5df54940766985e..63be45c01bfbf4a4f96dce9ac7981f61122cbd99 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-orphaned-li.html
|
| +++ b/third_party/WebKit/LayoutTests/editing/execCommand/switch-list-type-with-orphaned-li.html
|
| @@ -1,24 +1,33 @@
|
| -<script src="../../resources/dump-as-markup.js"></script>
|
| -<body>
|
| -<div id="test" contenteditable>
|
| -<ul>
|
| - <li>webkit</li>
|
| -</ul>
|
| -<li>rocks</li>
|
| -<ul>
|
| - <li>because of</li>
|
| -</ul>
|
| -<ol>
|
| - <li>you</li>
|
| -</ol>
|
| -</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 multiple lists with an orphaned list child 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>webkit</li>',
|
| + '</ul>',
|
| + '<li>rocks</li>', // orphaned list child
|
| + '<ul>',
|
| + '<li>because of</li>',
|
| + '</ul>',
|
| + '<ol>',
|
| + '<li>you</li>',
|
| + '</ol>',
|
| + '|</div>',
|
| + ].join(''),
|
| + 'insertOrderedList',
|
| + [
|
| + '<div contenteditable>',
|
| + '<ol>',
|
| + '<li>^webkit</li>',
|
| + '<li>rocks</li>',
|
| + '<li>because of</li>',
|
| + '<li>you|</li>',
|
| + '</ol>',
|
| + '</div>',
|
| + ].join('')),
|
| + 'Switching multiple lists with an orphaned list child to an ordered list');
|
| </script>
|
| -</body>
|
|
|