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