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