Skip to content

Commit b9af5f9

Browse files
hiikezoemoz-wptsync-bot
authored andcommitted
Avoid passing floating point values to WebDriver's wheel action in overscroll-behavior-root.html.
Differential Revision: https://phabricator.services.mozilla.com/D241765 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1954403 gecko-commit: 8b5352b76dea6f0fbede86e7386022439464f590 gecko-reviewers: botond
1 parent d769a3c commit b9af5f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

css/css-overscroll-behavior/overscroll-behavior-root.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
assert_not_equals(originalScrollPos, 0, "Should have scrolled to get the iframe into view");
3030

3131
await new test_driver.Actions()
32-
.scroll(bounds.left + bounds.width / 2, bounds.top + bounds.height / 2, 0, -100)
32+
.scroll(Math.round(bounds.left + bounds.width / 2),
33+
Math.round(bounds.top + bounds.height / 2), 0, -100)
3334
.send();
3435

3536
assert_equals(window.scrollY, originalScrollPos, "overscroll-behavior should work on the root");

0 commit comments

Comments
 (0)