Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / cookies / simple-cookies-max-age.html
blob535982d540cbff2764a8026206f88a28d1e2dcc4
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <link rel="stylesheet" href="resources/cookies-test-style.css">
5 <script src="resources/cookies-test-pre.js"></script>
6 </head>
7 <body>
8 <p id="description"></p>
9 <div id="console"></div>
10 <script>
11 description(
12 "This test checks that cookies are correctly set using Max-Age."
15 clearAllCookies();
17 debug("Check that setting a simple cookie works.");
18 cookiesShouldBe("test=foobar; Max-Age=90000000", "test=foobar");
19 clearCookies();
21 debug("Check setting a cookie that timed out.");
22 cookiesShouldBe("test2=foobar; Max-Age=0", "");
23 clearCookies();
25 successfullyParsed = true;
26 </script>
27 <script src="resources/cookies-test-post.js"></script>
28 </body>
29 </html>