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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/generic/generic-0_1-script-src.html

Issue 2801873005: Un-skipped wpt csp generic tests (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/LayoutTests/external/wpt/content-security-policy/generic/generic-0_1-img-src.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>default-src should cascade to script-src directive</title> 4 <title>default-src should cascade to script-src directive</title>
5 <script src='/resources/testharness.js'></script> 5 <script src='/resources/testharness.js'></script>
6 <script src='/resources/testharnessreport.js'></script> 6 <script src='/resources/testharnessreport.js'></script>
7 <script src='../support/siblingPath.js'></script> 7 <script src='../support/siblingPath.js'></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <h1>default-src should cascade to script-src directive</h1> 10 <h1>default-src should cascade to script-src directive</h1>
(...skipping 11 matching lines...) Expand all
22 var inlineScript = document.createElement('script'); 22 var inlineScript = document.createElement('script');
23 inlineScript.src = buildSiblingPath('www1', 'fail-0_1.js'); 23 inlineScript.src = buildSiblingPath('www1', 'fail-0_1.js');
24 document.getElementById('log').appendChild(inlineScript); 24 document.getElementById('log').appendChild(inlineScript);
25 onload = function() { 25 onload = function() {
26 scriptsrc1.done(); 26 scriptsrc1.done();
27 scriptsrc2.step( function() { assert_true(allowedScriptRan, "allowed s cript didn't run") }); 27 scriptsrc2.step( function() { assert_true(allowedScriptRan, "allowed s cript didn't run") });
28 scriptsrc2.done(); 28 scriptsrc2.done();
29 } 29 }
30 </script> 30 </script>
31 31
32 <script async defer src='../support/checkReport.sub.js?reportField=violated- directive&reportValue=default-src%20%27self%27%20%27unsafe-inline%27'></script> 32 <script async defer src='../support/checkReport.sub.js?reportField=violated- directive&reportValue=script-src%20%27self%27%20%27unsafe-inline%27'></script>
33 33
34 </body> 34 </body>
35 </html> 35 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/external/wpt/content-security-policy/generic/generic-0_1-img-src.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698