Skip to content

Commit

Permalink
Use scrollBy instead of scrollTo in a test in scrollTo-scrollBy-snaps…
Browse files Browse the repository at this point in the history
….html.

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

Depends on D21623

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1373835
gecko-commit: 9d201f2c32796be22a0defcca7c47cde48a5fd36
gecko-integration-branch: central
gecko-reviewers: botond
  • Loading branch information
Hiroyuki Ikezoe authored and jgraham committed Apr 25, 2019
1 parent 174cd0e commit c7e1d09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions css/css-scroll-snap/scrollTo-scrollBy-snaps.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@
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>

0 comments on commit c7e1d09

Please sign in to comment.