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

Side by Side Diff: LayoutTests/http/tests/security/cross-frame-access-name-getter.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 src="resources/cross-frame-access.js"></script> 3 <script src="resources/cross-frame-access.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <iframe src="http://localhost:8000/security/resources/cross-frame-iframe-for-get -test.html" style=""></iframe> 6 <iframe src="http://localhost:8000/security/resources/cross-frame-iframe-for-get -test.html" style=""></iframe>
7 <pre id="console"></pre> 7 <pre id="console"></pre>
8 <script> 8 <script>
9 9
10 window.targetWindow = frames[0]; 10 window.targetWindow = frames[0];
11 11
12 window.onload = function() 12 window.onload = function()
13 { 13 {
14 if (window.testRunner) 14 if (window.testRunner)
15 testRunner.dumpAsText(); 15 testRunner.dumpAsText();
16 16
17 log("\n----- tests for getting properties by name -----\n"); 17 log("\n----- tests for getting properties by name -----\n");
18 18
19 // frame by name 19 // frame by name
20 shouldBeTrue("canGet('targetWindow.testiframe')"); 20 shouldBeTrue("canGet('targetWindow.testiframe')");
21 21
22 // element by name 22 // element by name
23 shouldBeFalse("canGet('targetWindow.testimage')"); 23 shouldBeFalse("canGet('targetWindow.testimage')");
24
25 // Work around DRT bug that causes subsequent tests to fail.
26 window.stop();
24 } 27 }
25 </script> 28 </script>
26 </body> 29 </body>
27 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698