blob: b4ce07988255ff254c0b56a3e1c10d4adc0efa92 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<link rel="stylesheet" href="resources/cookies-test-style.css">
<script src="resources/cookies-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
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=-1", "");
clearCookies();
successfullyParsed = true;
</script>
<script src="resources/cookies-test-post.js"></script>
</body>
</html>