3 This test checks to make sure that a page that reads from localstorage fails to
7 <title>Prerender local storage read
</title>
10 window
.localStorage
.getItem("prerender_test");
11 var pageWasPrerendered
= false;
13 // Make sure plugin was not loaded while prerendering.
14 function DidPrerenderPass() {
15 pageWasPrerendered
= true;
19 // Make sure DidPrerenderPass() was called first. Otherwise, the page was
20 // most likely reloaded instead of using the prerendered page.
21 function DidDisplayPass() {
22 return pageWasPrerendered
;