| <script src="../../resources/ui-helper.js"></script> |
| function mouseWheelFired(e) |
| document.getElementById('log').textContent = "FAIL. We got a wheel event with a delta of 0."; |
| async function scrollTest() |
| momentumPhase : "changed" |
| await UIHelper.mouseWheelSequence({ events: events }); |
| document.body.addEventListener('mousewheel', mouseWheelFired, false); |
| if (window.eventSender) { |
| testRunner.waitUntilDone(); |
| setTimeout(scrollTest, 0); |
| window.addEventListener('load', loaded, false); |
| <!--To run this test outside of the test harness, just manually scroll and ensure that the success message |
| does not change to a failure message.--> |
| <pre id="log">Success! We didn't get a wheel event with a delta of 0.</pre> |