- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / cookie2.html
1 <html>
2 <head>
3 <script>
4 function setCookie() {
5   document.cookie = 'foo=baz';
6
7   // If there is a cookie prompt showing, then reading from document.cookie
8   // should block until the dialog is closed.
9   if (document.cookie.indexOf('foo') == -1) {
10     document.title = 'cookie blocked';
11   } else {
12     document.title = 'cookie allowed';
13   }
14 }
15 </script>
16 </head>
17 <body onload="setCookie();">
18 </body>
19 </html>