| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <body onload="test()"> | 2 <body onload="test()"> |
| 3 <script> | 3 <script> |
| 4 if (window.testRunner) | 4 if (window.testRunner) |
| 5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
| 6 | 6 |
| 7 function test() { | 7 function test() { |
| 8 document.open(); | 8 document.open(); |
| 9 document.insertBefore(document.createElement("summary")); | 9 document.insertBefore(document.createElement("summary"), null); |
| 10 // The document don't have <body> so we need use console.log() | 10 // The document don't have <body> so we need use console.log() |
| 11 // to make readable expectation. | 11 // to make readable expectation. |
| 12 console.log("PASS unless crash"); | 12 console.log("PASS unless crash"); |
| 13 } | 13 } |
| 14 </script> | 14 </script> |
| 15 </body> | 15 </body> |
| 16 </html> | 16 </html> |
| OLD | NEW |