| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <body onload="reloadOnce()"> | 2 <body onload="reloadOnce()"> |
| 3 <div>This test passes if it doesn't crash.</div> | 3 <div>This test passes if it doesn't crash.</div> |
| 4 <video style="position: absolute" poster="../fast/images/resources/green.jpg"><s
ource></video> | 4 <video style="position: absolute" poster="../images/resources/green.jpg"><source
></video> |
| 5 <script> | 5 <script> |
| 6 document.body.offsetHeight; | 6 document.body.offsetHeight; |
| 7 | 7 |
| 8 if (window.testRunner) | 8 if (window.testRunner) |
| 9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
| 10 | 10 |
| 11 function reloadOnce() { | 11 function reloadOnce() { |
| 12 var searchParameter = "?done"; | 12 var searchParameter = "?done"; |
| 13 if (window.location.search == searchParameter) { | 13 if (window.location.search == searchParameter) { |
| 14 if (window.testRunner) | 14 if (window.testRunner) |
| 15 testRunner.notifyDone(); | 15 testRunner.notifyDone(); |
| 16 } else { | 16 } else { |
| 17 if (window.testRunner) | 17 if (window.testRunner) |
| 18 testRunner.waitUntilDone(); | 18 testRunner.waitUntilDone(); |
| 19 window.location = window.location + searchParameter; | 19 window.location = window.location + searchParameter; |
| 20 } | 20 } |
| 21 } | 21 } |
| 22 </script> | 22 </script> |
| 23 </body> | 23 </body> |
| OLD | NEW |