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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/media-src-track-block.html

Issue 2766913003: Fixed and improved content-security-policy/media-src tests (Closed)
Patch Set: Re-edited TestExpectations after a rebase-update to try to make the patch apply properly this time 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
(Empty)
1 <html>
2 <head>
3 <meta http-equiv="Content-Security-Policy" content="media-src 'none'">
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
8 }
9 function loaded() {
10 alert("FAIL");
11 if (window.testRunner)
12 testRunner.notifyDone();
13 }
14 function errored() {
15 alert("PASS");
16 if (window.testRunner)
17 testRunner.notifyDone();
18 }
19 function start() {
20 var track = document.querySelector('track');
21 track.track.mode = "hidden";
22 track.setAttribute('src', 'resources/track.vtt');
23 }
24 </script>
25 </head>
26 <body onload="start()">
27 <video>
28 <track kind="captions" onload="loaded()" onerror="errored()">
29 </video>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698