mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +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
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')");
|
Loading…
Add table
Add a link
Reference in a new issue