<br></pre>
<script>
getSelection().collapse(target.childNodes[0], 9);
SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(() => {
target.focus();
is(document.activeElement, target, "Should be focused");
is(target.scrollTop, 0, "Should be scrolled to the top");
let editor = SpecialPowers.wrap(window).docShell.editor;
let controller = editor.selectionController;
let nsISelectionController = SpecialPowers.Ci.nsISelectionController;
controller.scrollSelectionIntoView(nsISelectionController.SELECTION_NORMAL, nsISelectionController.SELECTION_ANCHOR_REGION, nsISelectionController.SCROLL_SYNCHRONOUS);
is(target.scrollTop, target.scrollTopMax, "Should be scrolled to the bottom");
SimpleTest.finish();
});
</script>
Messung V0.5
¤ Dauer der Verarbeitung: 0.10 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.