Skip to content
Commit c9f77bf3 authored by Sandra Sun's avatar Sandra Sun Committed by Commit Bot
Browse files

Rewrite first-scroll-runs-on-compositor for more robustness.

Currently, first-scroll-runs-on-compositor.html uses ShouldBecomeEqual()
from js-test.js to check the final scroll destination. However, it
checks after 0.5secs, which may not be enough for all the platforms,
making the test flaky.

This patch rewrites the test using testharness.js and only checkes 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.

Bug: 778696
Change-Id: Icb91755a3eaecbb5a76023a303fcf9a27f713665
Reviewed-on: https://chromium-review.googlesource.com/777606


Commit-Queue: Sandra Sun <sunyunjia@chromium.org>
Reviewed-by: default avatarDavid Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#518273}
parent 65ae4d02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment