header-setcookie.any.html

FAILExpected21 of 24 subtests pass329 ms

Details

Test
/fetch/api/headers/header-setcookie.any.html
Harness
OK

Subtests

StatusSubtestMessage
PASSHeaders.prototype.get combines set-cookie headers in order
PASSHeaders iterator does not combine set-cookie headers
PASSHeaders iterator does not special case set-cookie2 headers
PASSHeaders iterator does not combine set-cookie & set-cookie2 headers
PASSHeaders iterator preserves set-cookie ordering
PASSHeaders iterator preserves per header ordering, but sorts keys alphabetically
PASSHeaders iterator preserves per header ordering, but sorts keys alphabetically (and ignores value ordering)
FAILHeaders iterator is correctly updated with set-cookie changes
assert_array_equals: expected property 0 to be "set-cookie" but got "x-header" (expected array ["set-cookie", "a=b"] got ["x-header", "test"])
assert_array_equals: expected property 0 to be "set-cookie" but got "x-header" (expected array ["set-cookie", "a=b"] got ["x-header", "test"])
FAILHeaders iterator is correctly updated with set-cookie changes #2
assert_array_equals: expected property 1 to be "e" but got "b" (expected array ["set-cookie", "e"] got ["set-cookie", "b"])
assert_array_equals: expected property 1 to be "e" but got "b" (expected array ["set-cookie", "e"] got ["set-cookie", "b"])
PASSHeaders.prototype.has works for set-cookie
PASSHeaders.prototype.append works for set-cookie
PASSHeaders.prototype.set works for set-cookie
PASSHeaders.prototype.delete works for set-cookie
PASSHeaders.prototype.getSetCookie with no headers present
PASSHeaders.prototype.getSetCookie with one header
PASSHeaders.prototype.getSetCookie with one header created from an object
PASSHeaders.prototype.getSetCookie with multiple headers
PASSHeaders.prototype.getSetCookie with an empty header
PASSHeaders.prototype.getSetCookie with two equal headers
PASSHeaders.prototype.getSetCookie ignores set-cookie2 headers
PASSHeaders.prototype.getSetCookie preserves header ordering
PASSAdding Set-Cookie headers normalizes their value
PASSAdding invalid Set-Cookie headers throws
FAILSet-Cookie is a forbidden response header
assert_array_equals: lengths differ, expected array [] length 0, got ["foo=bar"] length 1
assert_array_equals: lengths differ, expected array [] length 0, got ["foo=bar"] length 1