| Index: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-no-xorigin.html
|
| diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-no-xorigin.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-no-xorigin.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f965d50f8a7c49175ec4fa16e8a8a04ff594f3df
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-no-xorigin.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE html>
|
| +<head>
|
| + <title>SRI on cross origin CORS enabled script, without CORS fetch</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 integrity="ni:///sha256;mk_DwEwGGoyrh4sgi9t0nYTO1Lrft3w6vzaNuMaZrtQ=" src="http://localhost:8000/security/resources/cors-script.php?value=ran" onload="scriptLoaded();" onerror="scriptError();"></script>
|
| +</body>
|
| +</html>
|
|
|