OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Crash issue 344280</title> |
| 5 <script src="../../resources/js-test.js"></script> |
| 6 </head> |
| 7 |
| 8 <body> |
| 9 <script> |
| 10 description('Should not crash if we load a test case from crbug.com/3442
80.'); |
| 11 window.jsTestIsAsync = true; |
| 12 |
| 13 document.addEventListener("DOMContentLoaded", function () { |
| 14 document.execCommand("SelectAll", false); |
| 15 window.getSelection().deleteFromDocument(); |
| 16 }, true); |
| 17 |
| 18 var count = 0; |
| 19 document.addEventListener("DOMSubtreeModified", function () { |
| 20 count++; |
| 21 if (count < 3) { |
| 22 var src = event.srcElement; |
| 23 src.contentEditable = "true"; |
| 24 src.innerHTML = '<div></div>'; |
| 25 document.execCommand('InsertOrderedList', false, false); |
| 26 } else if (count == 3) { |
| 27 window.finishJSTest(); |
| 28 } |
| 29 }, false); |
| 30 </script> |
| 31 <h5> |
| 32 aa |
| 33 <textarea></textarea> |
| 34 </h5> |
| 35 <dl> |
| 36 aa |
| 37 </dl> |
| 38 </body> |
| 39 </html> |
OLD | NEW |