blob: a056c067bd9f27c4b3465c84a16e21a9fa3e714c [file] [log] [blame]
<html>
<script>
var eventFired = false;
function scroller() {
if (!eventFired) {
eventFired = true;
document.getElementById("passed").innerHTML = "<p style='color:red'>PASSED</p>";
}
}
window.onload = function() {
window.addEventListener('scroll', scroller, false);
window.scrollTo(500, 500);
if (window.layoutTestController) {
layoutTestController.dumpAsText();
}
}
</script>
<body>
<div id="passed"></div>
<p>If the word 'PASSED' does not appear above, then the test has failed. If the test fails, it means that a scroll event did not fire.</p>
a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>
a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>
a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>a<br>
</body>
</html>