Rewrite horizontal-smooth-scroll-in-rtl.html
The original test is written using js-test and is using shouldBecomeEqual() to verify the scroll offset after the animation, which makes it flaky. This patch rewrites the patch using testharness and promise test, and only checks after the page no longer scrolls or has reached the specified destination, which would be independent from the platform's performance, making the test robust. We separate the waitForWindowScrollEnd into scroll-animation.js so that other tests can reuse the method. We also change the input-driven scroll from clicking at scrollbar to keyboard-left so that the test passes on Mac. Bug: 664858 Change-Id: I030392484489983453bf7a11b55b05c13fa4a470 Reviewed-on: https://chromium-review.googlesource.com/822988Reviewed-by:Eric Willigers <ericwilligers@chromium.org> Reviewed-by:
Steve Kobes <skobes@chromium.org> Commit-Queue: Sandra Sun <sunyunjia@chromium.org> Cr-Commit-Position: refs/heads/master@{#523629}
Showing
Please register or sign in to comment