mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Cookies have a minimum expiry resolution of 1 second. So to test cookie expiration, the test had to idle for at least a second, which is quite a noticeable delay now that LibWeb tests are parallelized. Instead, we can add an internal API to expire cookies with a time offset to avoid this idle delay.
29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
Basic test: "cookie=value"
|
|
Multiple cookies: "cookie1=value1; cookie2=value2; cookie3=value3"
|
|
Nameless cookie: "value"
|
|
Valueless cookie: "cookie="
|
|
Nameless and valueless cookie: ""
|
|
Invalid control character: ""
|
|
Non-ASCII domain: ""
|
|
Default path: "cookie1=value; cookie2=value"
|
|
Secure cookie prefix: ""
|
|
Host cookie prefix: ""
|
|
Large value: "cookie=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
Overly large value: ""
|
|
HTTP only: ""
|
|
Public suffix: ""
|
|
SameSite=Lax: "cookie=value"
|
|
SameSite=Strict: "cookie=value"
|
|
SameSite=None: ""
|
|
Max-Age (before expiration): "cookie-max-age1=value; cookie-max-age2=value"
|
|
Max-Age (after expiration): "cookie-max-age2=value"
|
|
Max-Age in past: ""
|
|
Expires (before expiration): "cookie-expires=value"
|
|
Expires (after expiration): ""
|
|
Expires in past: ""
|
|
Invalid expiry (date does not exist): "cookie=value"
|
|
Invalid expiry (missing time): "cookie=value"
|
|
Invalid expiry (missing day): "cookie=value"
|
|
Invalid expiry (missing month): "cookie=value"
|
|
Invalid expiry (missing year): "cookie=value"
|