| Index: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-no-cors-no-xorigin.html
|
| diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-no-cors-no-xorigin.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-no-cors-no-xorigin.html
|
| index 76a4851d965614350c5a1da597bba3c26d7cdb8d..b14bdf72233097b4c21c19063efd7f14f897080e 100644
|
| --- a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-no-cors-no-xorigin.html
|
| +++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-no-cors-no-xorigin.html
|
| @@ -4,16 +4,12 @@
|
| <script src="/resources/testharness.js"></script>
|
| <script src="/resources/testharnessreport.js"></script>
|
| <script>
|
| - function styleLoad() {
|
| - assert_unreached("Style loaded.");
|
| - }
|
| function styleError() {
|
| - assert_true(true, "Style did not load.");
|
| + assert_unreached('Style did not load.');
|
| }
|
| </script>
|
| <style>.id1 { background-color: red }</style>
|
| <link rel="stylesheet"
|
| - onload="styleLoad()"
|
| onerror="styleError();"
|
| integrity="sha256-fy1lC6jbv7rOG6Flb00n5PYLggqe25IcE6QlZf8KtwI="
|
| href="http://localhost:8000/security/resources/cors-style.php?cors=false"></link>
|
| @@ -23,7 +19,7 @@
|
| window.onload = function () {
|
| var ele = document.getElementById('id1');
|
| var divBackground = window.getComputedStyle(ele, null).getPropertyValue('background-color');
|
| - assert_equals(divBackground, "rgb(255, 0, 0)");
|
| + assert_equals(divBackground, "rgb(255, 255, 0)");
|
| done();
|
| };
|
| </script>
|
|
|