| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <body> | 2 <body> |
| 3 <pre id="log"></pre> | 3 <pre id="log"></pre> |
| 4 </body> | 4 </body> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 if (window.testRunner) { | 7 if (window.testRunner) { |
| 8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
| 9 testRunner.waitUntilDone(); | 9 testRunner.waitUntilDone(); |
| 10 } | 10 } |
| 11 | 11 |
| 12 window.onpageshow = function(evt) { | 12 window.onpageshow = function(evt) { |
| 13 // Location changes need to happen outside the onload handler to generate hi
story entries. | 13 // Location changes need to happen outside the onload handler to generate hi
story entries. |
| 14 setTimeout(function() {window.location.href = 'resources/unschedule-relayout
-after-unload-target.html';}, 0); | 14 requestAnimationFrame(function() {window.location.href = 'resources/unschedu
le-relayout-after-unload-target.html';}); |
| 15 }; | 15 }; |
| 16 | 16 |
| 17 window.onpagehide = function(evt) { | 17 window.onpagehide = function(evt) { |
| 18 document.getElementById('log').innerHTML += 'onpagehide'; | 18 document.getElementById('log').innerHTML += 'onpagehide'; |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 </script> | 21 </script> |
| 22 </html> | 22 </html> |
| OLD | NEW |