scripthash-case-insensitive.sub.html (1884B)
1 <!DOCTYPE html> 2 <html> 3 4 <head> 5 <meta http-equiv="Content-Security-Policy" 6 content="script-src 'self' 7 'SHA256-VCOfB9NQbtW8/s+T7yizqn0dz0Ipt5krwH9BPUaXJTA=' 8 'SHA384-efOmACJwOYjUewZJTpktK4Kxl9spgncVwxok9DaIBIMN2zBzwxDni19L5uHkIX3E' 9 'SHA512-t9CmeiAGRym+Wsi8F+5TV1QEjcbFppf7ONB9HUTOs5pMLUy3BQCmASwXD/VKl0B5QytTTJawA2IhVvoebs7Gyg==' 10 'sHa256-BPe1cNQpEQoucXTYM91Ku9xnHT/BZXMOeOFeMZTPWis=' 11 'shA384-qNmIi2ya4g29IbFyUBBPFJ5BdkW43bygT/MrFSoe7o/ALn+a3iJDkssigmMHQ4J0' 12 'Sha512-GuQbQFeVHDBySntDnOpbrNCe4xwjLhnnaVRAGz5JAnYK9pj0vOEAkmKgzNJApgufV3r37DE7Derx5DGUmqkukg==' 13 'nonce-EDNnf03nceIOfn39fn3e9h3sdfa' 14 "> 15 <title>Test whether hash-algorithm parts are matched case-insensitively</title> 16 <script src="/resources/testharness.js"></script> 17 <script src="/resources/testharnessreport.js"></script> 18 <script src="/content-security-policy/support/alertAssert.sub.js?alerts=%5B%22PASS%20(1%2F6)%22%2C%22PASS%20(2%2F6)%22%2C%22PASS%20(3%2F6)%22%2C%22PASS%20(4%2F6)%22%2C%22PASS%20(5%2F6)%22%2C%22PASS%20(6%2F6)%22%5D"></script> 19 <script nonce="EDNnf03nceIOfn39fn3e9h3sdfa"> 20 window.addEventListener('securitypolicyviolation', function(e) { 21 alert_assert("Fail"); 22 }); 23 </script> 24 25 <script> 26 alert_assert('PASS (1/6)'); 27 28 </script> 29 <script> 30 alert_assert('PASS (2/6)'); 31 32 </script> 33 <script> 34 alert_assert('PASS (3/6)'); 35 36 </script> 37 <script> 38 alert_assert('PASS (4/6)'); 39 40 </script> 41 <script> 42 alert_assert('PASS (5/6)'); 43 44 </script> 45 <script> 46 alert_assert('PASS (6/6)'); 47 48 </script> 49 </head> 50 51 <body> 52 <p> 53 This tests whether hash-algorithm parts are matched 54 case-insensitively. It passes if no CSP violation is generated, and 55 the alert_assert() calls are executed. 56 </p> 57 <div id="log"></div> 58 </body> 59 60 </html>