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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/preload/download-resources.html

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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="/resources/testharness.js"></script> 2 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script> 3 <script src="/resources/testharnessreport.js"></script>
4 <script src="/preload/resources/preload_helper.js"></script> 4 <script src="/preload/resources/preload_helper.js"></script>
5 <script> 5 <script>
6 var t = async_test('Makes sure that preloaded resources are downloaded'); 6 var t = async_test('Makes sure that preloaded resources are downloaded');
7 </script> 7 </script>
8 <link rel=preload href="resources/dummy.js" as=script> 8 <link rel=preload href="resources/dummy.js" as=script>
9 <link rel=preload href="resources/dummy.css" as=style> 9 <link rel=preload href="resources/dummy.css" as=style>
10 <link rel=preload href="resources/square.png" as=image> 10 <link rel=preload href="resources/square.png" as=image>
11 <link rel=preload href="/fonts/CanvasTest.ttf" as=font crossorigin> 11 <link rel=preload href="/fonts/CanvasTest.ttf" as=font crossorigin>
12 <link rel=preload href="/media/white.mp4" as=video> 12 <link rel=preload href="/media/white.mp4" as=video>
13 <link rel=preload href="/media/sound_5.oga" as=audio> 13 <link rel=preload href="/media/sound_5.oga" as=audio>
14 <link rel=preload href="/media/foo.vtt" as=track> 14 <link rel=preload href="/media/foo.vtt" as=track>
15 <link rel=preload href="resources/dummy.xml?foo=bar" as=foobarxmlthing> 15 <link rel=preload href="resources/dummy.xml?foo=bar" as=foobarxmlthing>
16 <link rel=preload href="resources/dummy.xml"> 16 <link rel=preload href="resources/dummy.xml?novalue">
17 <link rel=preload href="resources/dummy.xml" as="fetch">
17 <body> 18 <body>
18 <script src="resources/dummy.js?pipe=trickle(d5)"></script> 19 <script src="resources/dummy.js?pipe=trickle(d5)"></script>
19 <script> 20 <script>
20 window.addEventListener("load", t.step_func(function() { 21 window.addEventListener("load", t.step_func(function() {
21 verifyPreloadAndRTSupport() 22 verifyPreloadAndRTSupport()
22 verifyNumberOfDownloads("resources/dummy.js", 1); 23 verifyNumberOfDownloads("resources/dummy.js", 1);
23 verifyNumberOfDownloads("resources/dummy.css", 1); 24 verifyNumberOfDownloads("resources/dummy.css", 1);
24 verifyNumberOfDownloads("/fonts/CanvasTest.ttf", 1); 25 verifyNumberOfDownloads("/fonts/CanvasTest.ttf", 1);
25 verifyNumberOfDownloads("/media/white.mp4", 1); 26 verifyNumberOfDownloads("/media/white.mp4", 1);
26 verifyNumberOfDownloads("/media/sound_5.oga", 1); 27 verifyNumberOfDownloads("/media/sound_5.oga", 1);
27 verifyNumberOfDownloads("/media/foo.vtt", 1); 28 verifyNumberOfDownloads("/media/foo.vtt", 1);
28 verifyNumberOfDownloads("resources/dummy.xml?foo=bar", 0); 29 verifyNumberOfDownloads("resources/dummy.xml?foo=bar", 0);
30 verifyNumberOfDownloads("resources/dummy.xml?novalue", 0);
29 verifyNumberOfDownloads("resources/dummy.xml", 1); 31 verifyNumberOfDownloads("resources/dummy.xml", 1);
30 t.done(); 32 t.done();
31 })); 33 }));
32 </script> 34 </script>
33 </body> 35 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698