do {
synthesizeKey("KEY_Tab");
is(document.activeElement.tagName, "INPUT", "Should focus inputs only, there's nothing else");
isnot(document.activeElement, lastActiveElement, "Focus should've moved once per tab keypress");
let rect = document.activeElement.getBoundingClientRect();
ok(rect.top >= 100, "Should not be covered by top bar");
ok(rect.bottom >= 100, "Should not be covered by bottom bar");
lastActiveElement = document.activeElement;
stack.push(lastActiveElement);
} while (document.activeElement != end)
do {
let previous = stack.pop();
let rect = document.activeElement.getBoundingClientRect();
ok(rect.top >= 100, "Should not be covered by top bar");
ok(rect.bottom >= 100, "Should not be covered by bottom bar");
is(document.activeElement, previous, "Focus should've moved backwards as expected");
synthesizeKey("KEY_Tab", {shiftKey: true});
} while (stack.length);
SimpleTest.finish();
});
</script>
Messung V0.5
¤ Dauer der Verarbeitung: 0.11 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.