| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <title>InputEvent: Invalid selection should not crash</title> |
| 3 <script src="../../../resources/testharness.js"></script> |
| 4 <script src="../../../resources/testharnessreport.js"></script> |
| 5 <script> |
| 6 async_test(t => { |
| 7 assert_not_equals(window.testRunner, undefined, 'This test requires testRunn
er.'); |
| 8 document.addEventListener('DOMContentLoaded', t.step_func_done(() => { |
| 9 document.designMode = 'on'; |
| 10 document.execCommand('selectAll'); |
| 11 document.execCommand('insertText', false, 'abc'); |
| 12 document.documentElement.innerText = null; |
| 13 testRunner.execCommand('undo'); |
| 14 })); |
| 15 }); |
| 16 </script> |
| 17 </html> |
| OLD | NEW |