| 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 testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1); | |
| 11 } | 10 } |
| 12 | 11 |
| 13 window.onpageshow = function(evt) { | 12 window.onpageshow = function(evt) { |
| 14 // 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. |
| 15 setTimeout(function() {window.location.href = 'resources/unschedule-relayout
-after-unload-target.html';}, 0); | 14 setTimeout(function() {window.location.href = 'resources/unschedule-relayout
-after-unload-target.html';}, 0); |
| 16 }; | 15 }; |
| 17 | 16 |
| 18 window.onpagehide = function(evt) { | 17 window.onpagehide = function(evt) { |
| 19 document.getElementById('log').innerHTML += 'onpagehide'; | 18 document.getElementById('log').innerHTML += 'onpagehide'; |
| 20 }; | 19 }; |
| 21 | 20 |
| 22 </script> | 21 </script> |
| 23 </html> | 22 </html> |
| OLD | NEW |