Bug 1373835 - Use scrollBy instead of scrollTo in a test in scrollTo-scrollBy-snaps.html. r=botond

Given the test description is mentioning scrollBy, scrollBy should be used
there.

Depends on D21623

Differential Revision: https://phabricator.services.mozilla.com/D21624

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Hiroyuki Ikezoe 2019-04-11 06:19:51 +00:00
parent ff60fc5656
commit 7fa6058b78

View File

@ -149,9 +149,9 @@ var viewport = document.scrollingElement;
window.scrollTo(0, 0);
assert_equals(window.scrollX, 0);
assert_equals(window.scrollY, 0);
window.scrollTo(input);
window.scrollBy(input);
assert_equals(window.scrollX, expectedX);
assert_equals(window.scrollY, expectedY);
}, `scrollBy(${format_dict(input)}) on window lands on (${expectedX}, ${expectedY})`);
});
</script>
</script>