Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / harness / resources / cached-page-1.html
blob0dbfd4d98e982b32b4b65c99c409a883239394b0
1 <script>
3 var intervalId;
4 function check() {
5 // This flag is set by cached-page-2 when it loads.
6 // If the timer is fired before cached-page-2 loads, just bail and wait.
7 if (!window.opener.canExit)
8 return;
10 clearInterval(intervalId);
11 window.opener.log("Back on page-1, timer is still firing.");
12 window.opener.log("PASS.");
13 window.opener.finish();
16 function loadNext()
18 // Verify that this onload handler is called only once. On navigation back
19 // this page will be served from the cache, w/o firing onload.
20 window.opener.reportOnload();
22 intervalId = setInterval(check, 10);
24 window.opener.log("page-1, about to navigate to page-2.")
25 // Location changes need to happen outside the onload handler to generate history entries.
26 setTimeout(function() {location.href = "cached-page-2.html";}, 0);
28 </script>
29 <body onload="loadNext()"></body>