Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / data / prerender / prerender_fragment_location_hash.html
blob6ba0a664a0e3799f1f0d09bec4470d162528c533
1 <html>
2 <head>
3 <title>Prerender fragment testing under location.hash change</title>
5 <script>
6 if (window.location.hash === "") {
7 window.location.hash = "fragment";
10 var pageWasPrerendered = false;
12 function DidPrerenderPass() {
13 pageWasPrerendered = true;
14 return window.location.hash === "#fragment";
17 // Make sure DidPrerenderPass() was called first. Otherwise, the page was
18 // most likely reloaded instead of using the prerendered page.
19 function DidDisplayPass() {
20 return pageWasPrerendered && window.location.hash === "#fragment";
23 </script>
25 </head>
26 <body>
27 <a name="fragment">Fragment</a>
28 </body>
29 </html>