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

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

Issue 10381106: Add tests for referrer policy and prerendering (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« no previous file with comments | « chrome/test/data/prerender/prerender_loader_with_referrer_policy.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
(Empty)
1 <html>
2 <!--
3 This test makes sure that referrer is properly set.
4 -->
5 <head>
6 <title>Prerender Referrer Test</title>
7 <script>
8 // Check referrer.
9 function DidPrerenderPass() {
10 return document.referrer != "" &&
11 document.referrer.indexOf("prerender_loader") == -1;
12 }
13
14 // Check referrer.
15 function DidDisplayPass() {
16 return document.referrer != "" &&
17 document.referrer.indexOf("prerender_loader") == -1;
18 }
19 </script>
20 </head>
21 <body></body>
22 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/prerender/prerender_loader_with_referrer_policy.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698