Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: LayoutTests/http/tests/security/cookies/base-about-blank.html

Issue 561813003: Prepare blink to unify definitions of load completion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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();
21 log("Test complete."); 22 log("Test complete.");
22 23
23 if (window.testRunner) 24 if (window.testRunner)
24 testRunner.notifyDone(); 25 testRunner.notifyDone();
25 } 26 }
26 </script> 27 </script>
27 <base href="http://localhost:8000/security/cookies/resources/set-a-cookie.html"> 28 <base href="http://localhost:8000/security/cookies/resources/set-a-cookie.html">
28 </head> 29 </head>
29 <body> 30 <body>
30 <iframe 31 <iframe
31 onload="runTest()" 32 onload="runTest()"
32 src="http://localhost:8000/security/cookies/resources/set-a-cookie.html"> 33 src="http://localhost:8000/security/cookies/resources/set-a-cookie.html">
33 </iframe> 34 </iframe>
34 <iframe></iframe> 35 <iframe></iframe>
35 <div id="console"></div> 36 <div id="console"></div>
36 </body> 37 </body>
37 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698