Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / cookies / http-get-cookie-set-in-js.html
blobab8eb4d8bfc97424d86320e242e6b7a578f85ae6
1 <!DOCTYPE html>
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 'Test that a cookie set using JavaScript can be correctly read by HTTP server'
15 clearAllCookies();
17 document.cookie = "name=value;Max-Age=1000";
19 debug('checking that the cookie set in javascript can be read by HTTP server');
20 testCookies("name=value");
22 clearCookies();
24 successfullyParsed = true;
25 </script>
26 <script src="resources/cookies-test-post.js"></script>
27 </body>
28 </html>