Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / security / cookies / base-about-blank.html
1 <html>
2 <head>
3 <script>
4 if (window.testRunner) {
5     testRunner.dumpAsText();
6     testRunner.waitUntilDone();
7 }
8
9 document.cookie = "secret=PASS"; 
10
11 function log(msg) {
12     var line = document.createElement("div");
13     line.appendChild(document.createTextNode(msg));
14     document.getElementById("console").appendChild(line);
15 }
16
17 function runTest() {
18     log("Running test.");
19     frames[1].document.open();
20     log(frames[1].document.cookie);
21     frames[1].document.close();
22     log("Test complete.");
23
24     if (window.testRunner)
25         testRunner.notifyDone();
26 }
27 </script>
28 <base href="http://localhost:8000/security/cookies/resources/set-a-cookie.html">
29 </head>
30 <body>
31 <iframe
32   onload="runTest()"
33   src="http://localhost:8000/security/cookies/resources/set-a-cookie.html">
34 </iframe>
35 <iframe></iframe>
36 <div id="console"></div>
37 </body>
38 </html>