trisquel-icecat/icecat/testing/web-platform/tests/client-hints/critical-ch/subresource.https.window.js

18 lines
456 B
JavaScript

// 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");