Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: chrome/test/data/prerender/prerender_page.html

Issue 10918189: Add PrerenderStatusEvent on Prerenders (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebase to trunk, remove some unrelated fixes... Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/prerender/prerender_loader.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <!-- 2 <!--
3 This test checks to make sure that a prerendered page is loaded. 3 This test checks to make sure that a prerendered page is loaded.
4 --> 4 -->
5 <head> 5 <head>
6 <title>Prerender Page</title> 6 <title>Prerender Page</title>
7 7
8 <script> 8 <script>
9 var pageWasPrerendered = false; 9 var pageWasPrerendered = false;
10 10
11 // Make sure plugin was not loaded while prerendering.
12 function DidPrerenderPass() { 11 function DidPrerenderPass() {
13 pageWasPrerendered = true; 12 pageWasPrerendered = true;
14 return true; 13 return true;
15 } 14 }
16 15
17 // Make sure DidPrerenderPass() was called first. Otherwise, the page was 16 // Make sure DidPrerenderPass() was called first. Otherwise, the page was
18 // most likely reloaded instead of using the prerendered page. 17 // most likely reloaded instead of using the prerendered page.
19 function DidDisplayPass() { 18 function DidDisplayPass() {
20 return pageWasPrerendered; 19 return pageWasPrerendered;
21 } 20 }
22 </script> 21 </script>
23 22
24 </head> 23 </head>
25 <body></body> 24 <body></body>
26 </html> 25 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/prerender/prerender_loader.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698