diff options
Diffstat (limited to 'LayoutTests/http/tests/cookies/script-tests/simple-cookies-max-age.js')
-rw-r--r-- | LayoutTests/http/tests/cookies/script-tests/simple-cookies-max-age.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/cookies/script-tests/simple-cookies-max-age.js b/LayoutTests/http/tests/cookies/script-tests/simple-cookies-max-age.js new file mode 100644 index 0000000..1d87b13 --- /dev/null +++ b/LayoutTests/http/tests/cookies/script-tests/simple-cookies-max-age.js @@ -0,0 +1,15 @@ +description( +"This test checks that cookies are correctly set using Max-Age." +); + +clearAllCookies(); + +debug("Check that setting a simple cookie works."); +cookiesShouldBe("test=foobar; Max-Age=90000000", "test=foobar"); +clearCookies(); + +debug("Check setting a cookie that timed out."); +cookiesShouldBe("test2=foobar; Max-Age=0", ""); +clearCookies(); + +successfullyParsed = true; |