summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fetch/content-encoding/br/bad-br-body.https.any.js
blob: 43ea90a336cd04df56b4f29f57182d2860481938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// META: global=window

[
  "arrayBuffer",
].forEach(method => {
  promise_test(t => {
    return fetch("resources/bad-br-body.py").then(res => {
      assert_equals(res.status, 200);
      return promise_rejects_js(t, TypeError, res[method]());
    });
  }, "Consuming the body of a resource with bad br content with " + method + "() should reject");
});