blob: 43ea90a336cd04df56b4f29f57182d2860481938 [file] [log] [blame]
// 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");
});