| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 if (window.layoutTestController) | 4 if (window.layoutTestController) |
| 5 { | 5 { |
| 6 layoutTestController.dumpAsText(); | 6 layoutTestController.dumpAsText(); |
| 7 layoutTestController.waitUntilDone(); | 7 layoutTestController.waitUntilDone(); |
| 8 } | 8 } |
| 9 | 9 |
| 10 function runTest() { | 10 function runTest() { |
| 11 brElement = document.getElementById('test'); | 11 brElement = document.getElementById('test'); |
| 12 document.open(); | 12 document.open(); |
| 13 setTimeout(function () { | 13 setTimeout(function () { |
| 14 document.appendChild(brElement); | 14 document.appendChild(brElement); |
| 15 | 15 |
| 16 alert('PASS'); | 16 alert('PASS'); |
| 17 if (window.layoutTestController) | 17 if (window.layoutTestController) |
| 18 layoutTestController.notifyDone(); | 18 layoutTestController.notifyDone(); |
| 19 }, 0); | 19 }, 0); |
| 20 } | 20 } |
| 21 </script> | 21 </script> |
| 22 </head> | 22 </head> |
| 23 <body onload="runTest()"> | 23 <body onload="runTest()"> |
| 24 <br id='test'> | 24 <br id='test'> |
| 25 </body> | 25 </body> |
| 26 </html> | 26 </html> |
| 27 | 27 |
| OLD | NEW |