| Index: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-no-cors.html
|
| diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-no-cors.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-no-cors.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4d9f8b50338ef41411c3a78dbdc77ae0f8dc098f
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-no-cors.html
|
| @@ -0,0 +1,23 @@
|
| +<!DOCTYPE html>
|
| +<head>
|
| + <title>SRI on cross origin CORS disabled tyle</title>
|
| + <style>.id1 { background-color: red }</style>
|
| + <link rel="stylesheet"
|
| + crossorigin
|
| + integrity="ni:///sha256;fy1lC6jbv7rOG6Flb00n5PYLggqe25IcE6QlZf8KtwI="
|
| + href="http://localhost:8000/security/resources/cors-style.php?cors=false"></link>
|
| +</head>
|
| +<body>
|
| + <script src="/resources/testharness.js"></script>
|
| + <script src="/resources/testharnessreport.js"></script>
|
| + <script>
|
| + window.onload = function () {
|
| + var ele = document.getElementById('id1');
|
| + var divBackground = window.getComputedStyle(ele, null).getPropertyValue('background-color');
|
| + assert_equals(divBackground, "rgb(255, 0, 0)");
|
| + done();
|
| + };
|
| + </script>
|
| + <div id="id1" class="id1"></div>
|
| +</body>
|
| +</html>
|
|
|