chromium/third_party/blink/web_tests/external/wpt/client-hints/critical-ch/subresource.https.window.js

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