You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Derive test pass from possibleResults instead of hardcoded allowlists #555
Alternatively, pass could be derived from static possibleResults (minus the known-failing ones).
Motivation
Reduce duplication and drift between possibleResults and the pass computation across tests.
Additional details
Applies at least to cross-origin-embedder-policy.js, cross-origin-opener-policy.js, and cross-origin-resource-policy.js (the latter uses the same pattern).
The expectation parameter also appears unused in practice and could be revisited as part of this.
Maybe it would be best to list passingResults and failingResults separately, and deriving possibleResults as a union of it. The alternative is to make passingResults a list of objects instead of just strings, so each result declares if it passes or not, though the separate lists are clearer to read.
Activity
caugner commentedon Jul 17, 2026
Maybe it would be best to list
passingResultsandfailingResultsseparately, and derivingpossibleResultsas a union of it. The alternative is to makepassingResultsa list of objects instead of just strings, so each result declares if it passes or not, though the separate lists are clearer to read.