OLD | NEW |
1 <script> | 1 <script> |
2 if (window.testRunner) { | 2 if (window.testRunner) { |
3 testRunner.dumpAsText(); | 3 testRunner.dumpAsText(); |
4 testRunner.waitUntilDone(); | 4 testRunner.waitUntilDone(); |
5 testRunner.setCanOpenWindows(true); | 5 testRunner.setCanOpenWindows(true); |
6 testRunner.setCloseRemainingWindowsWhenComplete(true); | 6 testRunner.setCloseRemainingWindowsWhenComplete(true); |
7 } | 7 } |
8 </script> | 8 </script> |
9 <p>To run this test outside of DumpRenderTree, please disable your popup blocker
!</p> | 9 <p>To run this test outside of DumpRenderTree, please disable your popup blocker
!</p> |
10 <iframe sandbox="allow-scripts allow-popups" | 10 <iframe sandbox="allow-scripts allow-popups allow-same-origin" |
11 src="data:text/html, | 11 src="data:text/html, |
12 <script> | 12 <script> |
13 var win = window.open('data:text/html,<script>if (window.testRunner) test
Runner.notifyDone();<\/script>', '_blank'); | 13 var win = window.open('about:blank', '_blank'); |
14 console.log(win ? 'PASS' : 'FAIL'); | 14 if (win) { |
| 15 console.log('PASS'); |
| 16 win.document.write( |
| 17 '<script>if (window.testRunner) testRunner.notifyDone();<\/script>'); |
| 18 } else { |
| 19 console.log('FAIL'); |
| 20 if (window.testRunner) testRunner.notifyDone(); |
| 21 } |
15 </script>" | 22 </script>" |
16 ></iframe> | 23 ></iframe> |
OLD | NEW |