| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 <textarea id="test" width="100" onfocus="popup()" onblur="popup()"></tex
tarea> | 6 <textarea id="test" width="100" onfocus="popup()" onblur="popup()"></tex
tarea> |
| 7 <div id="console"></div> | 7 <div id="console"></div> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 var win; | 10 var win; |
| 11 function popup() { | 11 function popup() { |
| 12 win = window.open("about:blank", "blank"); | 12 win = window.open("about:blank", "blank"); |
| 13 shouldBeUndefined("win"); | 13 shouldBeNull("win"); |
| 14 } | 14 } |
| 15 | 15 |
| 16 if (window.testRunner) { | 16 if (window.testRunner) { |
| 17 testRunner.dumpAsText(); | 17 testRunner.dumpAsText(); |
| 18 testRunner.setCanOpenWindows(); | 18 testRunner.setCanOpenWindows(); |
| 19 testRunner.setPopupBlockingEnabled(true); | 19 testRunner.setPopupBlockingEnabled(true); |
| 20 testRunner.setCloseRemainingWindowsWhenComplete(true); | 20 testRunner.setCloseRemainingWindowsWhenComplete(true); |
| 21 testRunner.waitUntilDone(); | 21 testRunner.waitUntilDone(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 document.getElementById("test").focus(); | 24 document.getElementById("test").focus(); |
| 25 document.getElementById("test").blur(); | 25 document.getElementById("test").blur(); |
| 26 | 26 |
| 27 if (window.testRunner) | 27 if (window.testRunner) |
| 28 testRunner.notifyDone(); | 28 testRunner.notifyDone(); |
| 29 </script> | 29 </script> |
| 30 </body> | 30 </body> |
| 31 </html> | 31 </html> |
| OLD | NEW |