| testRunner.setCanOpenWindows(); |
| testRunner.waitUntilDone(); |
| theWinref = window.open('','_blank','scrollbars=no'); |
| setTimeout(doNewWindow, 250); |
| setTimeout(printResult, 750); |
| theWinref.document.open(); |
| theWinref.document.write("<html><body><iframe height='100%' width='100%' src=''></iframe><div>If you can see this, the test has failed.</div></body></html>"); |
| theWinref.resizeTo(200,100); |
| theWinref.document.close(); |
| theWinref.scrollTo(200,100); |
| if (theWinref.document.body.scrollTop == 0) |
| document.getElementById("console").innerHTML = "PASSED"; |
| document.getElementById("console").innerHTML = "FAILED - window should not have been scrolled but was scrolled to " + theWinref.document.body.scrollTop; |
| setTimeout("endTest()", 10); |