4 if (window.layoutTestController) {
5 layoutTestController.dumpAsText();
6 layoutTestController.waitUntilDone();
8 function timeoutFired()
10 document.getElementById('console').innerHTML = "Not scrolled by WheelEvent: SUCCESS";
11 if (window.layoutTestController)
12 window.layoutTestController.notifyDone();
14 function scrollEventFired()
16 document.getElementById('console').innerHTML = "Scrolled by WheelEvent: FAILED (Should not be scrolled).";
17 if (window.layoutTestController)
18 window.layoutTestController.notifyDone();
22 window.frames[0].onscroll = scrollEventFired;
23 if (window.frames[0].eventSender) {
24 window.frames[0].eventSender.mouseScrollBy(0, -1);
26 setTimeout("timeoutFired()", 1000);
31 <div id="console"></div>
32 <iframe onload="runTest();" scrolling="no" style="width:200px;height:200px;" src="resources/scrollable-iframe.html">