1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <link rel=
"stylesheet" href=
"resources/cookies-test-style.css">
5 <script src=
"resources/cookies-test-pre.js"></script>
8 <p id=
"description"></p>
9 <div id=
"console"></div>
12 "This test checks that cookies are correctly set using Expires."
17 debug("Check that setting a simple cookie works.");
18 var date
= new Date();
19 date
.setTime(date
.getTime() + 60 * 1000);
20 cookiesShouldBe("test=foobar; Expires=" + date
.toGMTString(), "test=foobar");
23 debug("Check setting a cookie that timed out.");
24 date
.setTime(date
.getTime() - 2 * 60 * 1000);
25 cookiesShouldBe("test2=foobar; Expires=" + date
.toGMTString(), "");
28 successfullyParsed
= true;
30 <script src=
"resources/cookies-test-post.js"></script>