Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ New Test ] (254561@main): [ macOS wk2 ] fast/scrolling/mac/keyboard…
…-scrolling-with-mouse-scroll.html is a flaky failure (245482) https://bugs.webkit.org/show_bug.cgi?id=245503 rdar://100227233 Reviewed by Aditya Keerthi. The original test was flaky because it depended on the scroll position after a duration of time using `setTimeout`. However, because this is not guaranteed, the scroll position could vary, causing the test assertion to fail. This PR fixes this issue by measuring the scroll position relative to the position immediately after the key up event, which gets rid of this possible variation. Additionally, this PR improves upon the original test by having the wheel event have no delta scroll position; it is only important for the test that the wheel event properly interrupts the keyboard scrolling. This also removes a possible vector of variation. * LayoutTests/fast/scrolling/mac/keyboard-scrolling-with-mouse-scroll.html: * LayoutTests/platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/254771@main
- Loading branch information