Add a test for scrolling tree adjustment of fixed layers (r242601)
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 10 Mar 2019 05:52:21 +0000 (05:52 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 10 Mar 2019 05:52:21 +0000 (05:52 +0000)
commitd89b5951b13478ca2ecedc1a4c4bc9393c87fd96
treea3c2e55e8861f8ca4d02108c4cc74ef117417dd7
parentbc336985bb5fe872bcb1e5fcb0aa57d9099ffe25
Add a test for scrolling tree adjustment of fixed layers (r242601)
https://bugs.webkit.org/show_bug.cgi?id=195521

Reviewed by Sam Weinig.

This test sets the "unstable" scrolling state (as if the user is actively scrolling) and scrolls,
then changes style to trigger a scrolling tree commit with a changed offset for a fixed layer.
The test shows the wrong fixed layer position before r242601.

Helpers are added to UIHelper to do the scroll, and to wrap setTimeout in an async function.
Sadly we have to wait about 120ms for the scrollbars to fade out.

* resources/ui-helper.js:
(window.UIHelper.async.delayFor):
(window.UIHelper.async.immediateScrollTo):
(window.UIHelper.async.immediateUnstableScrollTo):
* scrollingcoordinator/ios/ui-scroll-fixed-expected.html: Added.
* scrollingcoordinator/ios/ui-scroll-fixed.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242683 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/resources/ui-helper.js
LayoutTests/scrollingcoordinator/ios/ui-scroll-fixed-expected.html [new file with mode: 0644]
LayoutTests/scrollingcoordinator/ios/ui-scroll-fixed.html [new file with mode: 0644]