diff --git a/preload/subresource-integrity.html b/preload/subresource-integrity.html index a1c867e2911cba..8bb36a1d321931 100644 --- a/preload/subresource-integrity.html +++ b/preload/subresource-integrity.html @@ -309,6 +309,28 @@ {integrity: "sha256-deaddeadbeefYHFvsYdWumweeFAw0hJDTFt9seErghA="} ) + SRIPreloadTest( + true, + true, + `Same-origin ${destination} with matching digest does not reuse preload without digest.`, + 2, + destination, + same_origin_prefix + destination + ext + `?${token()}`, + {}, + {integrity: sha256} + ) + + SRIPreloadTest( + true, + true, + `Same-origin ${destination} with matching digest does not reuse preload with matching but different digest.`, + 2, + destination, + same_origin_prefix + destination + ext + `?${token()}`, + {integrity: sha384}, + {integrity: sha256}, + ) + } // if. } // for-of.