OLD | NEW |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
1 <p>This tests for a bug where changing the list type of an indented list would c
reate unwanted nesting. You should see a single ordered list item in an indente
d list.</p> | 4 <p>This tests for a bug where changing the list type of an indented list would c
reate unwanted nesting. You should see a single ordered list item in an indente
d list.</p> |
2 <div id="div" contenteditable="true"><br></div> | 5 <div id="div" contenteditable="true"><br></div> |
3 | 6 <div id="log"></div> |
4 <script> | 7 <script> |
5 var div = document.getElementById("div"); | 8 test(function() { |
6 div.focus(); | 9 var div = document.getElementById('div'); |
7 document.execCommand("InsertText", false, "foo"); | 10 div.focus(); |
8 document.execCommand("InsertUnorderedList"); | 11 document.execCommand('InsertText', false, 'foo'); |
9 document.execCommand("Indent"); | 12 document.execCommand('InsertUnorderedList'); |
10 document.execCommand("InsertOrderedList"); | 13 document.execCommand('Indent'); |
| 14 document.execCommand('InsertOrderedList'); |
| 15 assert_equals(div.innerHTML, '<ul><ol><li>foo<br></li></ol></ul>'); |
| 16 }); |
11 </script> | 17 </script> |
OLD | NEW |