| OLD | NEW | 
|   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  Loading... | 
|  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" name=testIframe></iframe> |  40 <iframe style="display:none" src="about:blank" id=testIframe></iframe> | 
|  41 </body> |  41 </body> | 
|  42 </html> |  42 </html> | 
| OLD | NEW |