OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link rel="stylesheet" href="resources/cookies-test-style.css"> | 4 <link rel="stylesheet" href="resources/cookies-test-style.css"> |
5 <script src="resources/cookies-test-pre.js"></script> | 5 <script src="resources/cookies-test-pre.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <p id="description"></p> | 8 <p id="description"></p> |
9 <div id="console"></div> | 9 <div id="console"></div> |
10 <script> | 10 <script> |
11 description( | 11 description("Setting document.cookie to null should set a cookie named 'null'"); |
12 'Test that a cookie set using JavaScript can be correctly read by HTTP server' | |
13 ); | |
14 | 12 |
15 clearAllCookies(); | 13 clearAllCookies(); |
16 | 14 |
17 document.cookie = "name=value;Max-Age=1000"; | 15 document.cookie = null; |
18 | 16 shouldBe("document.cookie", "'null'"); |
19 debug('checking that the cookie set in javascript can be read by HTTP server'); | 17 testCookies("null"); |
20 testCookies("name=value"); | |
21 | 18 |
22 clearCookies(); | 19 clearCookies(); |
23 | 20 |
24 successfullyParsed = true; | 21 successfullyParsed = true; |
25 </script> | 22 </script> |
26 <script src="resources/cookies-test-post.js"></script> | 23 <script src="resources/cookies-test-post.js"></script> |
27 </body> | 24 </body> |
28 </html> | 25 </html> |
OLD | NEW |