mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
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:
parent
ff60fc5656
commit
7fa6058b78
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user