Repository navigation
Conversation
Run each scenario as its own test, so a failure names the case and does not hide the remaining ones. Cover every HTTP redirect scenario for protocol-relative scripts both with and without `integrity`. Rename `test_content_sri_impl_external_https1/2.html` fixtures to `_remote` and `_localhost`.
Annotate `httpScenarios` once instead of typing each `setup`, and omit the no-op `setup` of the default scenario.
Document that table entries hold an `Expectation` value rather than an arbitrary string.
The cross-origin script determines the result, so the case belongs with the other explicit-scheme cross-origin cases.
caugner
force-pushed
the
464-split-sri-tests
branch
from
November 24, 2026 17:38
57eb5fc to
3871223
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Restructure the Subresource Integrity tests into table-driven cases, grouped by script origin and scheme:
test_content_sri_impl_external_https1/2.htmlfixtures to_remoteand_localhost.Motivation
Make each scenario fail independently with a descriptive name, and make gaps in the case matrix visible. The "with SRI" protocol-relative cases previously lacked the "no HTTP server" and "HTTP hop" scenarios.
Additional details
Related issues and pull requests
Depends on: