| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script> | 4 <script> |
| 5 if (window.testRunner) { | 5 if (window.testRunner) { |
| 6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
| 7 testRunner.setCanOpenWindows(true); | 7 testRunner.setCanOpenWindows(true); |
| 8 testRunner.setPopupBlockingEnabled(false); | 8 testRunner.setPopupBlockingEnabled(false); |
| 9 testRunner.overridePreference('WebKitSupportsMultipleWindows', false); | 9 testRunner.overridePreference('WebKitSupportsMultipleWindows', false); |
| 10 testRunner.waitUntilDone(); | 10 testRunner.waitUntilDone(); |
| 11 } | 11 } |
| 12 | 12 |
| 13 function opened(result) { | 13 function opened(result) { |
| 14 // Called by the embedded iframe. | 14 // Called by the embedded iframe. |
| 15 if (result == window) { | 15 if (result == window) |
| 16 document.writeln("PASS"); | 16 document.writeln("PASS"); |
| 17 document.close(); | |
| 18 } | |
| 19 | 17 |
| 20 if (window.testRunner) | 18 if (window.testRunner) |
| 21 testRunner.notifyDone(); | 19 testRunner.notifyDone(); |
| 22 } | 20 } |
| 23 | 21 |
| 24 </script> | 22 </script> |
| 25 </head> | 23 </head> |
| 26 <body> | 24 <body> |
| 27 <iframe src="resources/child-opens-window.html"></iframe> | 25 <iframe src="resources/child-opens-window.html"></iframe> |
| 28 FAIL | 26 FAIL |
| 29 </body> | 27 </body> |
| 30 </html> | 28 </html> |
| OLD | NEW |