| 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..014dc13efe26cd75bb135a5a59f88189d692f6f2
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE html>
|
| +<head>
|
| + <title>SRI on cross origin CORS enabled script</title>
|
| +</head>
|
| +<body>
|
| + <script src="/resources/testharness.js"></script>
|
| + <script src="/resources/testharnessreport.js"></script>
|
| + <script>
|
| + var result = '';
|
| + var scriptLoaded = function() {
|
| + assert_equals(result, 'ran', 'Script ran.');
|
| + done();
|
| + };
|
| + var scriptError = function() {
|
| + assert_unreached('Script error.');
|
| + done();
|
| + };
|
| + </script>
|
| + <script crossorigin integrity="ni:///sha256;mk_DwEwGGoyrh4sgi9t0nYTO1Lrft3w6vzaNuMaZrtQ=" src="http://localhost:8000/security/resources/cors-script.php?value=ran" onload="scriptLoaded();" onerror="scriptError();"></script>
|
| +</body>
|
| +</html>
|
|
|