Index: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-no-cors-no-xorigin-with-creds.html |
diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-no-cors-no-xorigin-with-creds.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-no-cors-no-xorigin-with-creds.html |
index 6fa06c50ba99c2a39f3b607f85cef6a4055239f6..0c3af7bd1e6e08229dfb3a950efb25e8f0f257da 100644 |
--- a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-no-cors-no-xorigin-with-creds.html |
+++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-no-cors-no-xorigin-with-creds.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&credentials=true"></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> |