Index: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors.html |
diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..21fe2d003e6fcea4b6865c500ed5323d043da3ac |
--- /dev/null |
+++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors.html |
@@ -0,0 +1,12 @@ |
+<!DOCTYPE html> |
+<head> |
+</head> |
+<body> |
+ <script src="/js-test-resources/js-test.js"></script> |
+ <script> |
+ window.jsTestIsAsync = true; |
+ description("The test passes if the script loads without any console error messages."); |
+ </script> |
+ <script crossorigin="anonymous" integrity="ni:///sha256;aMGSdtxCNlh41rIWafnamZIabpc95dNK6HeHtc4auX0=" src="http://localhost:8000/security/resources/cors-script.php" onload="testPassed('Script ran.');finishJSTest();" onerror="testFailed('Script failed to load script resource.');"></script> |
+</body> |
+</html> |