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

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

Issue 679863002: Revert "Prepare blink to unify definitions of load completion" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
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();
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698