| Index: LayoutTests/editing/inserting/break-out-of-nested-lists.html
|
| diff --git a/LayoutTests/editing/inserting/break-out-of-nested-lists.html b/LayoutTests/editing/inserting/break-out-of-nested-lists.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a630cca15d9a75ef8ae35c8980ae5948d2be07ad
|
| --- /dev/null
|
| +++ b/LayoutTests/editing/inserting/break-out-of-nested-lists.html
|
| @@ -0,0 +1,29 @@
|
| +<!DOCTYPE>
|
| +<html>
|
| +<body>
|
| +<p id="description">Tests breaking out of empty list item in case of nested lists.</p>
|
| +<div contenteditable>
|
| +<ol>
|
| +<li>one</li>
|
| +<ul>
|
| +<li id="li">1</li>
|
| +<li>2</li>
|
| +</ul>
|
| +<li>two</li>
|
| +</ol>
|
| +</div>
|
| +<script src="../../resources/dump-as-markup.js"></script>
|
| +<script>
|
| +var li = document.getElementById("li");
|
| +var selection = window.getSelection();
|
| +selection.collapse(li, li.childNodes[0].length);
|
| +document.execCommand('InsertText', false, '\n'); //Split the inner list into two
|
| +document.execCommand('InsertText', false, '\n'); //Break out of the first inner list
|
| +document.execCommand('InsertText', false, '\n'); //Break out of the outer list
|
| +document.execCommand('InsertText', false, 'foo');
|
| +Markup.description(document.getElementById('description').textContent);
|
| +Markup.dump(document.querySelector('div'));
|
| +</script>
|
| +</body>
|
| +</html>
|
| +
|
|
|