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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/preload/link_header_preload_on_commit.php

Issue 2903653005: [preload] Mandatory `as` value and related spec alignments (Closed)
Patch Set: IDL changes Created 3 years, 6 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
OLDNEW
1 <?php 1 <?php
2 header("Link: </resources/dummy.css>;rel=preload", false); 2 header("Link: </resources/dummy.css>;rel=preload;as=style", false);
3 header("Link: </resources/square.png>;rel=preload;as=image;media=(min-width: 1px)", false); 3 header("Link: </resources/square.png>;rel=preload;as=image;media=(min-width: 1px)", false);
4 ?> 4 ?>
5 <!DOCTYPE html> 5 <!DOCTYPE html>
6 <html> 6 <html>
7 <body> 7 <body>
8 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script> 9 <script src="/resources/testharnessreport.js"></script>
10 <link rel="preload" href="/resources/dummy.js" as="script"> 10 <link rel="preload" href="/resources/dummy.js" as="script">
11 <script> 11 <script>
12 var t = async_test('Makes sure that Link headers preload resources'); 12 var t = async_test('Makes sure that Link headers preload resources');
(...skipping 18 matching lines...) Expand all
31 assert_greater_than(markup.startTime, nonMediaHeader.startTime); 31 assert_greater_than(markup.startTime, nonMediaHeader.startTime);
32 assert_greater_than(mediaHeader.startTime, nonMediaHeader.startTime); 32 assert_greater_than(mediaHeader.startTime, nonMediaHeader.startTime);
33 assert_greater_than(normalResource.startTime, mediaHeader.startTime); 33 assert_greater_than(normalResource.startTime, mediaHeader.startTime);
34 assert_greater_than(normalResource.startTime, markup.startTime); 34 assert_greater_than(normalResource.startTime, markup.startTime);
35 t.done(); 35 t.done();
36 })); 36 }));
37 </script> 37 </script>
38 </body> 38 </body>
39 </html> 39 </html>
40 40
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698