Index: Source/core/frame/SubresourceIntegrityTest.cpp |
diff --git a/Source/core/frame/SubresourceIntegrityTest.cpp b/Source/core/frame/SubresourceIntegrityTest.cpp |
index 3cfe8015b450698001d3b3c27be86a814825783e..560a37f5b76b8031a96c674f59c0863af545b0f0 100644 |
--- a/Source/core/frame/SubresourceIntegrityTest.cpp |
+++ b/Source/core/frame/SubresourceIntegrityTest.cpp |
@@ -286,12 +286,12 @@ TEST_F(SubresourceIntegrityTest, CheckSubresourceIntegrityInSecureOrigin) |
TEST_F(SubresourceIntegrityTest, CheckSubresourceIntegrityInInsecureOrigin) |
{ |
- // The same checks as CheckSubresourceIntegrityInSecureOrigin should fail here. |
+ // The same checks as CheckSubresourceIntegrityInSecureOrigin should pass here. |
document->updateSecurityOrigin(insecureOrigin->isolatedCopy()); |
- expectIntegrityFailure(kSha256Integrity, kBasicScript, secureURL); |
- expectIntegrityFailure(kSha384Integrity, kBasicScript, secureURL); |
- expectIntegrityFailure(kSha512Integrity, kBasicScript, secureURL); |
+ expectIntegrity(kSha256Integrity, kBasicScript, secureURL); |
+ expectIntegrity(kSha384Integrity, kBasicScript, secureURL); |
+ expectIntegrity(kSha512Integrity, kBasicScript, secureURL); |
expectIntegrityFailure(kSha384IntegrityLabeledAs256, kBasicScript, secureURL); |
expectIntegrityFailure(kUnsupportedHashFunctionIntegrity, kBasicScript, secureURL); |
} |