historical.any.js (584B)
1 // META: global=window,worker 2 3 test(() => { 4 assert_false("getAll" in new Headers()); 5 assert_false("getAll" in Headers.prototype); 6 }, "Headers object no longer has a getAll() method"); 7 8 test(() => { 9 assert_false("type" in new Request("about:blank")); 10 assert_false("type" in Request.prototype); 11 }, "'type' getter should not exist on Request objects"); 12 13 // See https://github.com/whatwg/fetch/pull/979 for the removal 14 test(() => { 15 assert_false("trailer" in new Response()); 16 assert_false("trailer" in Response.prototype); 17 }, "Response object no longer has a trailer getter");