Update web-platform-tests to revision b'b7c1d80f991820c17aaae0477052c30d7f699eba'

This commit is contained in:
WPT Sync Bot 2022-11-30 01:45:48 +00:00
parent 189236862a
commit 274846e69e
217 changed files with 7520 additions and 2797 deletions

View file

@ -11,6 +11,18 @@ test(function() {
assert_true(responseError.headers.entries().next().done, "Headers should be empty");
}, "Check response returned by static method error()");
promise_test (async function() {
let response = await fetch("../resources/data.json");
try {
response.headers.append('name', 'value');
} catch (e) {
assert_equals(e.constructor.name, "TypeError");
}
assert_not_equals(response.headers.get("name"), "value", "response headers should be immutable");
}, "Ensure response headers are immutable");
test(function() {
const headers = Response.error().headers;