| <title>The page should scroll back to the top</title> |
| background-image: repeating-linear-gradient(white, silver 200px); |
| testRunner.waitUntilDone(); |
| document.scrollingElement.scrollTop = 20; |
| document.scrollingElement.scrollTop = 0; |
| eventSender.monitorWheelEvents(); |
| eventSender.mouseMoveTo(20, 20); |
| eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -1, "began", "none"); |
| eventSender.mouseScrollByWithWheelAndMomentumPhases(0, -10, "changed", "none"); |
| eventSender.mouseScrollByWithWheelAndMomentumPhases(0, 0, "ended", "none"); |
| eventSender.callAfterScrollingCompletes(() => { |
| document.scrollingElement.scrollTop = 0; |
| window.addEventListener('load', doTest, false); |