blob: 5b240947dda812ee61678172fa6b499141c16a42 [file] [log] [blame]
<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// Selection should be restored correctly based
// on previous selection after list is applied.
selection_test(
[
'<div contenteditable>',
'^<p>A</p>',
'<p>B</p>',
'<p>C</p>',
'<p>D</p>',
'<p>E</p>',
'<p>F|</p>',
'<p>This should not be highlighted</p>',
'</div>'
],
'insertOrderedList',
[
'<div contenteditable>',
'<p>',
'<ol>',
'<li>^A</li>',
'<li>B</li>',
'<li>C</li>',
'<li>D</li>',
'<li>E</li>',
'<li>F|</li>',
'</ol>',
'</p>',
'<p>This should not be highlighted</p>',
'</div>'
],
'This is test for correct selection');
</script>