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.overridePreference('WebKitSupportsMultipleWindows', false); | 8 testRunner.overridePreference('WebKitSupportsMultipleWindows', false); |
9 testRunner.waitUntilDone(); | 9 testRunner.waitUntilDone(); |
10 } | 10 } |
(...skipping 18 matching lines...) Expand all Loading... |
29 document.writeln('PASS: Popup opened in the same window'); | 29 document.writeln('PASS: Popup opened in the same window'); |
30 testRunner.notifyDone(); | 30 testRunner.notifyDone(); |
31 } | 31 } |
32 } | 32 } |
33 | 33 |
34 window.addEventListener('load', runTest, true); | 34 window.addEventListener('load', runTest, true); |
35 </script> | 35 </script> |
36 </head> | 36 </head> |
37 <body> | 37 <body> |
38 You need popups to be enabled to run this test. | 38 You need popups to be enabled to run this test. |
39 <a id="link" target="_blank" href="data:text/html;charset=utf-8,<html><body>The
test passes if this page opens in the same window</body></html>">Click me!</a> | 39 <a id="link" target="_blank" href="resources/popup.html">Click me!</a> |
40 </body> | 40 </body> |
41 </html> | 41 </html> |
OLD | NEW |