Index: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors-bad-integrity.html |
diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors-bad-integrity.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors-bad-integrity.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cbecf17605f299b35e012ad3cf73300451d69b39 |
--- /dev/null |
+++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-no-cors-bad-integrity.html |
@@ -0,0 +1,20 @@ |
+<!DOCTYPE html> |
+<head> |
+ <title>SRI on cross origin CORS disabled script, with bad integrity</title> |
+</head> |
+<body> |
+ <script src="/resources/testharness.js"></script> |
+ <script src="/resources/testharnessreport.js"></script> |
+ <script> |
+ var result = ''; |
+ var scriptLoaded = function() { |
+ assert_unreached('Script loaded.'); |
+ done(); |
+ }; |
+ var scriptError = function() { |
+ done(); |
+ }; |
+ </script> |
+ <script crossorigin integrity="ni:///sha256;deadbeef" src="http://localhost:8000/security/resources/cors-script.php?cors=false&value=ran2" onload="scriptLoaded();" onerror="scriptError();"></script> |
+</body> |
+</html> |