OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
3 <script src="../../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
4 <ul contenteditable> | 4 <div> |
5 <li id="foo"></li> | 5 <ol contenteditable id=sample> |
6 </ul> | 6 <li>foo</li> |
| 7 </ol> |
| 8 <div id="log"></div> |
7 <script> | 9 <script> |
8 test(function() { | 10 test(function() { |
9 if (!window.internals) | 11 window.getSelection().selectAllChildren(document.getElementById('sample')); |
10 return; | 12 document.execCommand('insertOrderedList'); |
11 internals.settings.setUnifiedTextCheckerEnabled(true); | 13 }, 'insertOrderedList should not crash with uneditable parent'); |
12 window.getSelection().selectAllChildren(document.getElementById('foo')); | |
13 document.execCommand('insertParagraph'); | |
14 }, 'spelling'); | |
15 </script> | 14 </script> |
OLD | NEW |