Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-style-cors-no-xorigin.html

Issue 1166003004: SRI fail open on ineligible resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove a bunch of -expected.txt files Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698