Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /client-hints/critical-ch/subresource.https.window.html - WPT Dashboard Interop Dashboard
// META: script=resources/util.js
// META: script=/common/utils.js
promise_test(() =>
fetch(ECHO_URL)
.then((r) => r.text())
.then((r) => {
assert_true(r.includes("FAIL"));
})
, "Critical-CH subresource fetch");
promise_test(() =>
fetch(ECHO_URL+"?multiple=true")
.then((r) => r.text())
.then((r) => {
assert_true(r.includes("FAIL"));
})
, "Critical-CH w/ multiple headers and subresource fetch");