Index: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-bad-integrity.html |
diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-bad-integrity.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-bad-integrity.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..39285622642264a190b94e589472404a76d0ba8f |
--- /dev/null |
+++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-bad-integrity.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<head> |
+ <title>SRI on cross origin CORS enabled 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_equals(result, '', 'Script did not run.'); |
+ done(); |
+ }; |
+ var scriptError = function() { |
+ assert_unreached('Script error.'); |
+ done(); |
+ }; |
+ </script> |
+ <script crossorigin integrity="ni:///sha256;deadbeef" src="http://localhost:8000/security/resources/cors-script.php?value=ran" onload="scriptLoaded();" onerror="scriptError();"></script> |
+</body> |
+</html> |