Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FractionalScroll] Fix web tests #17671

Merged
merged 1 commit into from Jul 10, 2019

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jul 8, 2019

This CL fixes Blink web tests so that they pass when the Fractional
Scroll Offsets flag is enabled. This flag enables fractional offsets on
the Blink main thread which breaks some tests because they assume that
offsets will be floored.

I've modernized two tests:
fast/events/platform-wheelevent-paging-y-in-non-scrolling-div.html
fast/events/scale-and-scroll-div.html

The first appears to have been an issue with js-test modifying the page
while the second was passing but the PASS string in the -exected.txt
had changed to include the factional. Both tests now pass with and
without the feature enabled.

I removed fast/events/touch/gesture/touch-gesture-scroll-div-scaled.html
since it was testing the same thing as scale-and-scroll-div.html.

The rest of the tests required changing the layout such that it doesn't
cause us to land on fractional offsets (and thus the behavior will be
unchanged with and without the flag). Where this was difficult I just
allowed for approximate equality.

Bug: 414283
Change-Id: Ie03fa06b100fb9946675e921357c1eaebfe6a37e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1690293
Commit-Queue: David Bokan <bokan@chromium.org>
Reviewed-by: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/master@{#676118}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already reviewed downstream.

This CL fixes Blink web tests so that they pass when the Fractional
Scroll Offsets flag is enabled. This flag enables fractional offsets on
the Blink main thread which breaks some tests because they assume that
offsets will be floored.

I've modernized two tests:
fast/events/platform-wheelevent-paging-y-in-non-scrolling-div.html
fast/events/scale-and-scroll-div.html

The first appears to have been an issue with js-test modifying the page
while the second was passing but the PASS string in the -exected.txt
had changed to include the factional. Both tests now pass with and
without the feature enabled.

I removed fast/events/touch/gesture/touch-gesture-scroll-div-scaled.html
since it was testing the same thing as scale-and-scroll-div.html.

The rest of the tests required changing the layout such that it doesn't
cause us to land on fractional offsets (and thus the behavior will be
unchanged with and without the flag). Where this was difficult I just
allowed for approximate equality.

Bug: 414283
Change-Id: Ie03fa06b100fb9946675e921357c1eaebfe6a37e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1690293
Commit-Queue: David Bokan <bokan@chromium.org>
Reviewed-by: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/master@{#676118}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants