var loadCount = 0; var childWin = window.open('file_scroll_position_restore.html', '_blank');
function handleLoad() {
if (loadCount == 0) {
loadCount++;
childWin.scrollTo(0, childWin.scrollMaxY);
childWin.waitForAllPaintsFlushed(function() {
childWin.location.reload();
});
} else {
childWin.waitForAllPaintsFlushed(function() {
// Verify that the scroll position was retained.
// NOTE: Window.scrollMaY is a long value, so we need to round
// Window.scrollY which is double.
// NOTE: Window.scrollMaxY is non-standard, so difference < 1.0 would not
// be a big problem.
is(Math.round(childWin.scrollY), childWin.scrollMaxY);
childWin.close();
SimpleTest.finish();
});
}
}
</script>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.20 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.