async function test() { var content = document.getElementById("content");
// enough iterations that we would scroll to the bottom of 'content'
for (let i = 0; i < 600 && content.scrollTop != content.scrollTopMax; i++) {
await promiseNativeWheelAndWaitForWheelEvent(content, 100, 150, 0, -5);
}
is(content.scrollTop > 0, true, "We should have scrolled down somewhat");
is(content.scrollTop, content.scrollTopMax, "We should have scrolled to the bottom of the scrollframe");
is(rotationAdjusted, false, "The rotation should not have been adjusted");
}
SimpleTest.waitForExplicitFinish();
// If we allow smooth scrolling the "smooth" scrolling may cause the page to
// glide past the scrollbox (which is supposed to stop the scrolling) and so
// we might end up at the bottom of the page.
pushPrefs([["general.smoothScroll", false],
["mousewheel.transaction.timeout", 100000],
["dom.event.wheel-event-groups.enabled", true]])
.then(waitUntilApzStable)
.then(test)
.then(SimpleTest.finish, SimpleTest.finishWithFailure);
</script>
</pre>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.32 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.