Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / resources / cached-page-1.html
blobffb0cd38e867a9f35555dabe1561038bb58f52e6
1 <html>
2 <head>
3 <script>
4 function endTest() {
5 window.opener.log("PASS.");
6 window.opener.finish();
9 function loadNext() {
10 if (window.opener.canExit2) {
11 endTest();
12 return;
15 window.opener.log("page-1, about to navigate to page-2.")
16 // Location changes need to happen outside the onload handler to generate history entries.
17 setTimeout(function() {location.href = "cached-page-2.html";}, 0);
20 // This unload handler exists just to make sure this page is not added
21 // to the page cache!
22 function myUnload() {
23 window.opener.log("page-1 running unload handler");
25 </script>
26 </head>
27 <body onload="loadNext()" onunload="myUnload()">
28 </body>
29 </html>