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

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

Issue 2732853003: [preload] Split up media into video, audio and track (Closed)
Patch Set: Added a test that media fails Created 3 years, 9 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 not downloaded a gain when used'); 6 var t = async_test('Makes sure that preloaded resources are not downloaded a gain when used');
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="resources/square.png?background" as=image> 11 <link rel=preload href="resources/square.png?background" as=image>
12 <link rel=preload href="/media/CanvasTest.ttf" as=font crossorigin> 12 <link rel=preload href="/media/CanvasTest.ttf" as=font crossorigin>
13 <link rel=preload href="/media/white.mp4" as=media> 13 <link rel=preload href="/media/white.mp4" as=video>
14 <link rel=preload href="/media/sound_5.oga" as=media> 14 <link rel=preload href="/media/sound_5.oga" as=audio>
15 <link rel=preload href="/media/foo.vtt" as=media> 15 <link rel=preload href="/media/foo.vtt" as=track>
16 <link rel=preload href="resources/dummy.xml?foo=bar" as=foobarxmlthing> 16 <link rel=preload href="resources/dummy.xml?foo=bar" as=foobarxmlthing>
17 <link rel=preload href="resources/dummy.xml"> 17 <link rel=preload href="resources/dummy.xml">
18 <body> 18 <body>
19 <script src="resources/dummy.js?pipe=trickle(d3)"></script> 19 <script src="resources/dummy.js?pipe=trickle(d3)"></script>
20 <style> 20 <style>
21 #background { 21 #background {
22 width: 200px; 22 width: 200px;
23 height: 200px; 23 height: 200px;
24 background-image: url(resources/square.png?background); 24 background-image: url(resources/square.png?background);
25 } 25 }
(...skipping 26 matching lines...) Expand all
52 verifyNumberOfDownloads("/media/CanvasTest.ttf", 1); 52 verifyNumberOfDownloads("/media/CanvasTest.ttf", 1);
53 verifyNumberOfDownloads("resources/dummy.xml?foobar", 0); 53 verifyNumberOfDownloads("resources/dummy.xml?foobar", 0);
54 verifyNumberOfDownloads("/media/foo.vtt", 1); 54 verifyNumberOfDownloads("/media/foo.vtt", 1);
55 verifyNumberOfDownloads("resources/dummy.xml", 1); 55 verifyNumberOfDownloads("resources/dummy.xml", 1);
56 // FIXME: We should verify for video and audio as well, but they see m to (flakily?) trigger multiple partial requests. 56 // FIXME: We should verify for video and audio as well, but they see m to (flakily?) trigger multiple partial requests.
57 t.done(); 57 t.done();
58 }), 0); 58 }), 0);
59 })); 59 }));
60 </script> 60 </script>
61 <span>PASS - this text is here just so that the browser will download the font.< /span> 61 <span>PASS - this text is here just so that the browser will download the font.< /span>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698