Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /fetch/content-encoding/br/bad-br-body.https.any.html - WPT Dashboard Interop Dashboard
// 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");
});