Index: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-cors-no-xorigin.html |
diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-cors-no-xorigin.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-cors-no-xorigin.html |
index bf16081ef300fc2c257b1d68654e51a18b75948a..505287ad82814efe3a168bd00ed2c986d7216e10 100644 |
--- a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-cors-no-xorigin.html |
+++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-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"></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> |