4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.setCanOpenWindows();
7 testRunner.setPopupBlockingEnabled(true);
8 testRunner.setCloseRemainingWindowsWhenComplete(true);
9 testRunner.waitUntilDone();
13 // We rely on sequential ordering of POST processing.
14 var form = document.getElementById('form');
16 var form2 = document.getElementById('form2');
21 <body onload="test()">
22 If the POST pop-up was not blocked then there will be an ALERT containing a
23 Window object. Otherwise, the test passes.
24 <form id="form" action="data:text/html,<script>alert(window)</script>" target="_blank">
25 <input type="submit" value="Submit to new window"/>
27 <form id="form2" action="data:text/html,<b>hello!</b><script>window.testRunner && testRunner.notifyDone()</script>" target="target">
28 <input type="submit" value="Submit local page Javascript"/>
30 <iframe id="target"></iframe>