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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/preload/preload-default-csp.sub.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 <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-in line'; default-src 'none'"> 2 <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-in line'; default-src 'none'">
3 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script> 4 <script src="/resources/testharnessreport.js"></script>
5 <script src="/preload/resources/preload_helper.js"></script> 5 <script src="/preload/resources/preload_helper.js"></script>
6 <script> 6 <script>
7 var t = async_test('Makes sure that preload requests respect CSP'); 7 var t = async_test('Makes sure that preload requests respect CSP');
8 </script> 8 </script>
9 <link rel=preload href="{{host}}:{{ports[http][1]}}/preload/resources/dummy.js" as=style> 9 <link rel=preload href="{{host}}:{{ports[http][1]}}/preload/resources/dummy.js" as=style>
10 <link rel=preload href="resources/dummy.css" as=style> 10 <link rel=preload href="resources/dummy.css" as=style>
11 <link rel=preload href="resources/square.png" as=image> 11 <link rel=preload href="resources/square.png" as=image>
12 <link rel=preload href="/fonts/CanvasTest.ttf" as=font crossorigin> 12 <link rel=preload href="/fonts/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(d5)"></script> 19 <script src="resources/dummy.js?pipe=trickle(d5)"></script>
20 <script> 20 <script>
21 window.onload = t.step_func(function() { 21 window.onload = t.step_func(function() {
22 verifyPreloadAndRTSupport(); 22 verifyPreloadAndRTSupport();
23 verifyNumberOfDownloads("{{host}}:{{ports[http][1]}}/preload/resources/d ummy.js", 0); 23 verifyNumberOfDownloads("{{host}}:{{ports[http][1]}}/preload/resources/d ummy.js", 0);
24 verifyNumberOfDownloads("resources/dummy.css", 0); 24 verifyNumberOfDownloads("resources/dummy.css", 0);
25 verifyNumberOfDownloads("resources/square.png", 0); 25 verifyNumberOfDownloads("resources/square.png", 0);
26 verifyNumberOfDownloads("/fonts/CanvasTest.ttf", 0); 26 verifyNumberOfDownloads("/fonts/CanvasTest.ttf", 0);
27 verifyNumberOfDownloads("/media/white.mp4", 0); 27 verifyNumberOfDownloads("/media/white.mp4", 0);
28 verifyNumberOfDownloads("/media/sound_5.oga", 0); 28 verifyNumberOfDownloads("/media/sound_5.oga", 0);
29 verifyNumberOfDownloads("/media/foo.vtt", 0); 29 verifyNumberOfDownloads("/media/foo.vtt", 0);
30 verifyNumberOfDownloads("resources/dummy.xml", 0); 30 verifyNumberOfDownloads("resources/dummy.xml", 0);
31 t.done(); 31 t.done();
32 }); 32 });
33 </script> 33 </script>
34 34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698