| OLD | NEW |
| (Empty) | |
| 1 <!doctype html> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <script src="../assert_selection.js"></script> |
| 5 <script> |
| 6 // Regression test for crbug.com/685347 |
| 7 test(() => { |
| 8 assert_not_equals( |
| 9 window.eventSender, undefined, 'This test requires eventSender'); |
| 10 |
| 11 assert_selection( |
| 12 '<iframe></iframe>', |
| 13 selection => { |
| 14 const document = selection.document; |
| 15 const iframe = document.querySelector('iframe'); |
| 16 iframe.contentDocument.documentElement.contentEditable = true; |
| 17 iframe.contentDocument.documentElement.addEventListener( |
| 18 'focusout', |
| 19 () => iframe.parentNode.removeChild(iframe)); |
| 20 iframe.contentDocument.documentElement.focus(); |
| 21 eventSender.keyDown('Enter'); |
| 22 }, |
| 23 ''); |
| 24 }, 'Should not crash when inserting linebreak removes frame.'); |
| 25 </script> |
| OLD | NEW |