mirror of
https://github.com/servo/servo.git
synced 2025-09-03 19:48:21 +01:00
Update web-platform-tests to revision 50ff4f970fd8592a9f436d4e86e7d572de143260
This commit is contained in:
parent
82bbf3ad45
commit
8ea5658199
150 changed files with 4737 additions and 998 deletions
|
@ -30,4 +30,14 @@ test(() => {
|
|||
client.send()
|
||||
assert_equals(client.getAllResponseHeaders(), "content-length: 0\r\n")
|
||||
})
|
||||
|
||||
async_test(t => {
|
||||
const client = new XMLHttpRequest();
|
||||
client.onload = t.step_func_done(() => {
|
||||
assert_equals(client.getAllResponseHeaders(), "www-authenticate: 1, 2, 3, 4\r\n");
|
||||
});
|
||||
client.onerror = t.unreached_func("unexpected error");
|
||||
client.open("GET", "resources/headers-www-authenticate.asis");
|
||||
client.send();
|
||||
});
|
||||
</script>
|
||||
|
|
19
tests/wpt/web-platform-tests/xhr/getresponseheader.any.js
Normal file
19
tests/wpt/web-platform-tests/xhr/getresponseheader.any.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
async_test(t => {
|
||||
const client = new XMLHttpRequest();
|
||||
client.onload = t.step_func_done(() => {
|
||||
assert_equals(client.getResponseHeader("foo-test"), "1, 2, 3");
|
||||
});
|
||||
client.onerror = t.unreached_func("unexpected error");
|
||||
client.open("GET", "resources/headers-basic.asis");
|
||||
client.send();
|
||||
}, "getResponseHeader('foo-test')");
|
||||
|
||||
async_test(t => {
|
||||
const client = new XMLHttpRequest();
|
||||
client.onload = t.step_func_done(() => {
|
||||
assert_equals(client.getResponseHeader("www-authenticate"), "1, 2, 3, 4");
|
||||
});
|
||||
client.onerror = t.unreached_func("unexpected error");
|
||||
client.open("GET", "resources/headers-www-authenticate.asis");
|
||||
client.send();
|
||||
}, "getResponseHeader('www-authenticate')");
|
|
@ -0,0 +1,4 @@
|
|||
HTTP/1.1 280 HELLO
|
||||
www-authenticate: 1
|
||||
www-authenticate: 2
|
||||
www-authenticate: 3, 4
|
Loading…
Add table
Add a link
Reference in a new issue