header-setcookie.any.html
Details
- Test
/fetch/api/headers/header-setcookie.any.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | Headers.prototype.get combines set-cookie headers in order |
| PASS | Headers iterator does not combine set-cookie headers |
| PASS | Headers iterator does not special case set-cookie2 headers |
| PASS | Headers iterator does not combine set-cookie & set-cookie2 headers |
| PASS | Headers iterator preserves set-cookie ordering |
| PASS | Headers iterator preserves per header ordering, but sorts keys alphabetically |
| PASS | Headers iterator preserves per header ordering, but sorts keys alphabetically (and ignores value ordering) |
| FAIL | Headers 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"]) |
| FAIL | Headers 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"]) |
| PASS | Headers.prototype.has works for set-cookie |
| PASS | Headers.prototype.append works for set-cookie |
| PASS | Headers.prototype.set works for set-cookie |
| PASS | Headers.prototype.delete works for set-cookie |
| PASS | Headers.prototype.getSetCookie with no headers present |
| PASS | Headers.prototype.getSetCookie with one header |
| PASS | Headers.prototype.getSetCookie with one header created from an object |
| PASS | Headers.prototype.getSetCookie with multiple headers |
| PASS | Headers.prototype.getSetCookie with an empty header |
| PASS | Headers.prototype.getSetCookie with two equal headers |
| PASS | Headers.prototype.getSetCookie ignores set-cookie2 headers |
| PASS | Headers.prototype.getSetCookie preserves header ordering |
| PASS | Adding Set-Cookie headers normalizes their value |
| PASS | Adding invalid Set-Cookie headers throws |
| FAIL | Set-Cookie is a forbidden response header assert_array_equals: lengths differ, expected array [] length 0, got ["foo=bar"] length 1 |