summaryrefslogtreecommitdiffstats
path: root/LayoutTests/http/tests/cookies/script-tests/simple-cookies-max-age.js
blob: 1d87b130c3538891fed9f59fdab700c6539141a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;