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

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

Issue 6880139: Changing URL match method to support fragments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add more browser tests. Created 9 years, 8 months 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <title>Prerender fragment testing under location.hash change</title>
4
5 <script>
6 var pageWasPrerendered = false;
7
8 function DidPrerenderPass() {
9 pageWasPrerendered = true;
10 return true;
11 }
12
13 // Make sure DidPrerenderPass() was called first. Otherwise, the page was
14 // most likely reloaded instead of using the prerendered page.
15 function DidDisplayPass() {
16 return pageWasPrerendered;
17 }
18
19 console.log("Current hash is '" + window.location.hash + "'");
cbentzel 2011/04/25 19:49:48 Get rid of console.log
20 if (window.location.hash === "") {
21 console.log(" setting hash to 'fragment'");
22 window.location.hash = "fragment";
23 }
24 </script>
25
26 </head>
27 <body>
28 <a name="fragment">Fragment</a>
29 </body>
30 </html>
31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698