| testRunner.waitUntilDone(); |
| <meta http-equiv="refresh" content="0;url=data:text/plain,You should not have been redirected here."> |
| <iframe id="ifrm" src="about:blank"></iframe> |
| document.body.onload = function() { |
| document.write('<p>FAIL: onload</p>'); |
| // Having a subframe open should prevent refresh. |
| document.getElementById("ifrm").contentDocument.open(); |
| // Test succeeded, now remove traps and return to a state that won't confuse our test runner. |
| document.body.onload = function() {}; |
| document.getElementById("ifrm").contentDocument.close(); |
| <p>SUCCESS - shouldn't refresh or invoke onload.</p> |