duplicate-directive.sub.html (935B)
1 <!DOCTYPE html> 2 <html> 3 4 <head> 5 <!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.--> 6 <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-inline'; script-src 'none'; connect-src 'self';"> 7 <title>duplicate-directive</title> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="../support/logTest.sub.js?logs=[]"></script> 11 <script src='../support/alertAssert.sub.js?alerts=["PASS (1/1)"]'></script> 12 <script> 13 window.addEventListener('securitypolicyviolation', function(e) { 14 alert_assert("FAIL"); 15 }); 16 alert_assert('PASS (1/1)'); 17 </script> 18 </head> 19 20 <body> 21 <p> 22 This tests the effect of duplicated directives. It passes if the alert_assert() is executed. 23 </p> 24 <div id="log"></div> 25 </body> 26 27 </html>