Web Inspector: AXI: linkified refs to #document and #text are not usually navigable...
[WebKit-https.git] / ManualTests / frame-layout-on-back.html
1 <html>
2 <head>
3 <script>
4
5 function navigate()
6 {
7     if (location.hash == "") {
8         if (window.layoutTestController) {
9             layoutTestController.overridePreference("WebKitUsesPageCachePreferenceKey", 1);
10             layoutTestController.waitUntilDone();
11         }
12
13         history.pushState({ }, "", window.location + "#1");
14         setTimeout("window.location.href = 'resources/empty-document-goes-back.html'", 0);
15         return;
16     }
17
18     setTimeout(function () {
19         if (window.layoutTestController)
20             layoutTestController.notifyDone();
21     }, 0);
22 }
23
24 </script>
25 </head>
26 <body style="width:800px" onpageshow="navigate();">
27     <div id="result">This test passes if the iframe lays out and paints (meaning it is purple) after the test naviagtes back.</div><br/><br/>
28     <iframe id="iframe" src="resources/simple-iframe.html"></iframe>
29 </body>
30 </htmL>