| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body><div><script> | 3 <body><div><script> |
| 4 | 4 |
| 5 if (!window.layoutTestController) | 5 if (!window.layoutTestController) |
| 6 document.write("This test requires GCController."); | 6 document.write("This test requires GCController."); |
| 7 else { | 7 else { |
| 8 layoutTestController.dumpAsText(); | 8 layoutTestController.dumpAsText(); |
| 9 layoutTestController.waitUntilDone(); | 9 layoutTestController.waitUntilDone(); |
| 10 | 10 |
| 11 function crash() { | 11 function crash() { |
| 12 document.open(); | 12 document.open(); |
| 13 document.write("PASS. WebKit didn't crash."); | 13 document.write("PASS. WebKit didn't crash."); |
| 14 document.close(); | 14 document.close(); |
| 15 GCController.collect(); | 15 GCController.collect(); |
| 16 setTimeout("layoutTestController.notifyDone()", 0); | 16 setTimeout("layoutTestController.notifyDone()", 0); |
| 17 } | 17 } |
| 18 | 18 |
| 19 setTimeout(function () { | 19 setTimeout(function () { |
| 20 document.addEventListener('DOMNodeInsertedIntoDocument', function () { c
rash(); }, true); | 20 document.addEventListener('DOMNodeInsertedIntoDocument', function () { c
rash(); }, true); |
| 21 document.addEventListener('DOMSubtreeModified', function () { /* noop */
}, false); | 21 document.addEventListener('DOMSubtreeModified', function () { /* noop */
}, false); |
| 22 document.body = document.createElement('body'); | 22 document.body = document.createElement('body'); |
| 23 }, 0); | 23 }, 0); |
| 24 } | 24 } |
| 25 | 25 |
| 26 </script> | 26 </script> |
| 27 </body> | 27 </body> |
| 28 </html> | 28 </html> |
| OLD | NEW |