blob: 0d7fce10ba30dc27c48425541728ab860b452e3d [file] [log] [blame]
<html>
<script>
if (window.layoutTestController)
{
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
function scrollEventFired()
{
document.getElementById('console').innerHTML = "Scrolled by JavaScript scrollTo(): PASS";
if (window.layoutTestController)
layoutTestController.notifyDone();
}
function runTest()
{
window.frames[0].onscroll = scrollEventFired;
window.frames[0].scrollTo(0, 50);
}
</script>
<junk id="console">
<iframe onload="runTest();" src="resources/scrollable-iframe.html">
</junk>
</html>