| testRunner.waitUntilDone(); |
| document.getElementById('console').innerHTML = "Scrolled by JavaScript scrollTo(): FAILED"; |
| window.testRunner.notifyDone(); |
| function scrollEventFired() |
| document.getElementById('console').innerHTML = "Scrolled by JavaScript scrollTo(): PASS"; |
| window.testRunner.notifyDone(); |
| window.frames[0].onscroll = scrollEventFired; |
| window.frames[0].scrollTo(0, 50); |
| setTimeout("timeoutFired()", 1000); |
| <iframe onload="runTest();" scrolling="no" style="width:200px;height:200px;" src="resources/scrollable-iframe.html"> |