mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision b'b7c1d80f991820c17aaae0477052c30d7f699eba'
This commit is contained in:
parent
189236862a
commit
274846e69e
217 changed files with 7520 additions and 2797 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue