bad-br-body.https.any.js (410B)
1 // META: global=window 2 3 [ 4 "arrayBuffer", 5 "blob", 6 "bytes", 7 "formData", 8 "json", 9 "text" 10 ].forEach(method => { 11 promise_test(t => { 12 return fetch("resources/bad-br-body.py").then(res => { 13 assert_equals(res.status, 200); 14 return promise_rejects_js(t, TypeError, res[method]()); 15 }); 16 }, "Consuming the body of a resource with bad br content with " + method + "() should reject"); 17 });