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

Side by Side Diff: LayoutTests/fast/dom/Window/timeout-callback-scope.html

Issue 187103002: id of iframe incorrectly sets window name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add back no-referrer-subframe.html Created 6 years, 9 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 <script> 2 <script>
3 3
4 // When both timeouts finish, the counter will be 2. 4 // When both timeouts finish, the counter will be 2.
5 window.completionCounter = 0; 5 window.completionCounter = 0;
6 function test() 6 function test()
7 { 7 {
8 if (window.testRunner) { 8 if (window.testRunner) {
9 testRunner.dumpAsText(); 9 testRunner.dumpAsText();
10 testRunner.waitUntilDone(); 10 testRunner.waitUntilDone();
(...skipping 19 matching lines...) Expand all
30 if (completionCounter < 2) 30 if (completionCounter < 2)
31 return; 31 return;
32 if (window.testRunner) 32 if (window.testRunner)
33 testRunner.notifyDone(); 33 testRunner.notifyDone();
34 } 34 }
35 </script> 35 </script>
36 <body onload="test()"> 36 <body onload="test()">
37 <p>Test verifies that a timeout callback is run in the proper execution context. 2 timeouts are set on a child iframe's window. 'Closure' callback should execut e in the main page, 'string' callback should execute in the iframe. Test passes if you see 2 lines 'PASS' below.</p> 37 <p>Test verifies that a timeout callback is run in the proper execution context. 2 timeouts are set on a child iframe's window. 'Closure' callback should execut e in the main page, 'string' callback should execute in the iframe. Test passes if you see 2 lines 'PASS' below.</p>
38 <div id=closureResult>FAIL</div> 38 <div id=closureResult>FAIL</div>
39 <div id=stringResult>FAIL</div> 39 <div id=stringResult>FAIL</div>
40 <iframe style="display:none" src="about:blank" id=testIframe></iframe> 40 <iframe style="display:none" src="about:blank" name=testIframe></iframe>
41 </body> 41 </body>
42 </html> 42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698