// This fails flakily, see bug 1974454
is(popup.innerHeight, 500, "starting height is 500");
is(popup.innerWidth, 500, "starting width in 500");
// When this test was written, it said that resizeBy can occur sync without a resize event.
// Since bug 543435, window.open can fire a resize event.
// So there can be up to two resize, we only care for the correct innerWidth.
const resizeByDone = new Promise(resolve => {
const checkResized = () => {
info(`Checking target width: ${popup.innerWidth} vs ${550}`);
if (popup.innerWidth == 550) {
popup.removeEventListener("resize", checkResized);
resolve();
}
}
popup.addEventListener("resize", checkResized);
checkResized();
});
popup.resizeBy(50, 0);
await resizeByDone;
is(popup.innerHeight, 500, "ending height is 500");
is(popup.innerWidth, 550, "ending width is 550");
popup.close();
});
</script>
</body>
</html>
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.22 Sekunden
(vorverarbeitet am 2026-08-25)
¤
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.