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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/generic/generic-0_1-img-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
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>default-src should cascade to img-src directive</title> 4 <title>default-src should cascade to img-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 img-src directive</h1> 10 <h1>default-src should cascade to img-src directive</h1>
(...skipping 11 matching lines...) Expand all
22 onload='imgsrc.step(function() { assert_true(true, "Image load was bloc ked."); });'> 22 onload='imgsrc.step(function() { assert_true(true, "Image load was bloc ked."); });'>
23 23
24 <script> 24 <script>
25 document.getElementById('imgfail').src = buildSiblingPath('www1', '../supp ort/fail.png'); 25 document.getElementById('imgfail').src = buildSiblingPath('www1', '../supp ort/fail.png');
26 onload = function() { 26 onload = function() {
27 imgsrc.step(function() { assert_true(onerrorFired, "onerror handler for blocked img didn't fire");}); 27 imgsrc.step(function() { assert_true(onerrorFired, "onerror handler for blocked img didn't fire");});
28 imgsrc.done(); 28 imgsrc.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=img-src%20%27self%27%20%27unsafe-inline%27'></script>
33 33
34 </body> 34 </body>
35 </html> 35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698