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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/prefetch/link_header_prefetch.php

Issue 2602233002: Prefetch Link header support. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/LinkLoader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <?php
2 header("Link: <http://127.0.0.1:8000/resources/square.png?background>;rel=pr efetch", false);
3 ?>
4 <!DOCTYPE html>
5 <html>
6 <head></head>
7 <body>
8 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script>
10 <script>
11 var t = async_test('Makes sure that Link headers prefetch resources');
12 </script>
13 <script src="/resources/slow-script.pl?delay=200"></script>
Charlie Harrison 2017/01/01 18:36:04 Why do we need to load this script at all?
14 <script>
15 window.addEventListener("load", t.step_func(function() {
16 var entries = performance.getEntriesByType("resource");
17 assert_equals(entries.length, 4);
18 t.done();
19 }));
20 </script>
21 </body>
22 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/LinkLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698