mirror of
https://github.com/servo/servo.git
synced 2025-08-22 22:05:32 +01:00
Update web-platform-tests to revision 44702f2bc8ea98bc32b5b244f2fe63c6ce66d49d
This commit is contained in:
parent
85fa6409bb
commit
c227604a2c
997 changed files with 45660 additions and 14650 deletions
|
@ -0,0 +1,11 @@
|
|||
promise_test(() => {
|
||||
return fetch("/XMLHttpRequest/resources/echo-headers.py", {headers: [["THIS-is-A-test", 1], ["THIS-IS-A-TEST", 2]] }).then(res => res.text()).then(body => {
|
||||
assert_regexp_match(body, /THIS-is-A-test: 1, 2/)
|
||||
})
|
||||
}, "Multiple headers with the same name, different case (THIS-is-A-test first)")
|
||||
|
||||
promise_test(() => {
|
||||
return fetch("/XMLHttpRequest/resources/echo-headers.py", {headers: [["THIS-IS-A-TEST", 1], ["THIS-is-A-test", 2]] }).then(res => res.text()).then(body => {
|
||||
assert_regexp_match(body, /THIS-IS-A-TEST: 1, 2/)
|
||||
})
|
||||
}, "Multiple headers with the same name, different case (THIS-IS-A-TEST first)")
|
|
@ -56,14 +56,14 @@ corsFilter(url, "Pragma", "no-cache", false);
|
|||
corsFilter(url, "Age", "27", true);
|
||||
corsFilter(url, "Server", "wptServe" , true);
|
||||
corsFilter(url, "Warning", "Mind the gap" , true);
|
||||
corsFilter(url, "Content-Length", "0" , true);
|
||||
corsFilter(url, "Content-Length", "3" , true); // top.txt contains "top"
|
||||
corsFilter(url, "Set-Cookie", "name=value" , true);
|
||||
corsFilter(url, "Set-Cookie2", "name=value" , true);
|
||||
|
||||
corsExposeFilter(url, "Age", "27", false);
|
||||
corsExposeFilter(url, "Server", "wptServe" , false);
|
||||
corsExposeFilter(url, "Warning", "Mind the gap" , false);
|
||||
corsExposeFilter(url, "Content-Length", "0" , false);
|
||||
corsExposeFilter(url, "Content-Length", "3" , false);
|
||||
|
||||
corsExposeFilter(url, "Set-Cookie", "name=value" , true);
|
||||
corsExposeFilter(url, "Set-Cookie2", "name=value" , true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue