summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/client-hints/critical-ch/subresource.https.window.js
blob: 81dfc303c62e03498314abbf9b80a2abc88d2a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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");