blob: 386d2890b7d03ccff8419c1d9ace1b86c43f59f5 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<style>
body {
height: 10000px;
}
</style>
</head>
<body>
<script>
if (window.internals) {
test(() => {
window.scroll(0, 9000);
const originalPageYOffset = pageYOffset;
window.internals.setPageZoomFactor(2);
const afterZoomPageYOffset = pageYOffset;
window.internals.setPageZoomFactor(1);
const afterResetPageYOffset = pageYOffset;
assert_equals(originalPageYOffset, afterZoomPageYOffset);
assert_equals(originalPageYOffset, afterResetPageYOffset);
});
}
</script>
</body>
</html>