Preload integrity: Test matching SRI with options consumed by same SRI without options (#33508)
diff --git a/preload/subresource-integrity.html b/preload/subresource-integrity.html
index f4ff950..0d88aba 100644
--- a/preload/subresource-integrity.html
+++ b/preload/subresource-integrity.html
@@ -278,6 +278,17 @@
SRIPreloadTest(
true,
+ true,
+ `Same-origin ${destination} with matching digest re-uses preload with matching digest and options.`,
+ 1,
+ destination,
+ same_origin_prefix + destination + ext + `?${token()}`,
+ {integrity: `${sha256}?dummy-option=value`},
+ {integrity: sha256}
+ )
+
+ SRIPreloadTest(
+ true,
false,
`Same-origin ${destination} with non-matching digest does not re-use preload with matching digest.`,
2,