request-headers.any.html

FAILExpected24 of 61 subtests pass888 ms

Details

Test
/fetch/api/request/request-headers.any.html
Harness
OK

Subtests

StatusSubtestMessage
PASSAdding valid request header "Content-Type: OK"
PASSAdding valid request header "Potato: OK"
PASSAdding valid request header "proxy: OK"
PASSAdding valid request header "proxya: OK"
PASSAdding valid request header "sec: OK"
PASSAdding valid request header "secb: OK"
PASSAdding valid request header "Set-Cookie2: OK"
PASSAdding valid request header "User-Agent: OK"
FAILAdding invalid request header "Accept-Charset: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "accept-charset: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "ACCEPT-ENCODING: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Accept-Encoding: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Access-Control-Request-Headers: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Access-Control-Request-Method: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Connection: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Content-Length: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Cookie: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Cookie2: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Date: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "DNT: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Expect: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Host: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Keep-Alive: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Origin: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Referer: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Set-Cookie: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "TE: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Trailer: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Transfer-Encoding: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Upgrade: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Via: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Proxy-: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "proxy-a: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "Sec-: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid request header "sec-b: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
PASSAdding valid no-cors request header "Accept: OK"
PASSAdding valid no-cors request header "Accept-Language: OK"
PASSAdding valid no-cors request header "content-language: OK"
PASSAdding valid no-cors request header "content-type: application/x-www-form-urlencoded"
PASSAdding valid no-cors request header "content-type: application/x-www-form-urlencoded;charset=UTF-8"
PASSAdding valid no-cors request header "content-type: multipart/form-data"
PASSAdding valid no-cors request header "content-type: multipart/form-data;charset=UTF-8"
PASSAdding valid no-cors request header "content-TYPE: text/plain"
PASSAdding valid no-cors request header "CONTENT-type: text/plain;charset=UTF-8"
FAILAdding invalid no-cors request header "Content-Type: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid no-cors request header "Potato: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid no-cors request header "proxy: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid no-cors request header "proxya: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid no-cors request header "sec: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid no-cors request header "secb: KO"
assert_equals: expected (object) null but got (string) "KO"
assert_equals: expected (object) null but got (string) "KO"
FAILAdding invalid no-cors request header "Empty-Value: "
assert_equals: expected (object) null but got (string) ""
assert_equals: expected (object) null but got (string) ""
FAILCheck that request constructor is filtering headers provided as init parameter
assert_equals: expected (object) null but got (string) "potato"
assert_equals: expected (object) null but got (string) "potato"
FAILCheck that no-cors request constructor is filtering headers provided as init parameter
assert_equals: expected (object) null but got (string) "potato"
assert_equals: expected (object) null but got (string) "potato"
FAILCheck that no-cors request constructor is filtering headers provided as part of request parameter
assert_equals: expected (object) null but got (string) "potato"
assert_equals: expected (object) null but got (string) "potato"
PASSRequest should get its content-type from the init request
PASSRequest should not get its content-type from the init request if init headers are provided
PASSRequest should get its content-type from the body if none is provided
PASSRequest should get its content-type from init headers if one is provided
PASSTesting request header creations with various objects
PASSTesting empty Request Content-Type header
PASSTest that Request.headers has the [SameObject] extended attribute