3 This test checks to make sure that pending prerenders start at page launch,
6 <link id=thePrerender rel=prerender
href=
"prerender_page.html" />
8 <title>Prerender Page
</title>
10 <script src=
"prerender_events_common.js"></script>
13 var pageWasPrerendered
= false;
15 function DidPrerenderPass() {
16 pageWasPrerendered
= true;
17 return !GetPrerenderEventCount(0, 'webkitprerenderstart');
20 // Make sure DidPrerenderPass() was called first. Otherwise, the page was
21 // most likely reloaded instead of using the prerendered page.
22 function DidDisplayPass() {
23 return pageWasPrerendered
;
26 var link
= document
.getElementById('thePrerender');
27 AddEventHandlersToLinkElement(link
, 0);