[webkit-changes] [WebKit/WebKit] a35669: Add some swipe tests with wheel event handlers

Simon Fraser noreply at github.com
Tue Mar 14 18:40:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a35669fc381359abd48ba7ca725fce9eedcf94e0
      https://github.com/WebKit/WebKit/commit/a35669fc381359abd48ba7ca725fce9eedcf94e0
  Author: Simon Fraser <simon.fraser at apple.com>
  Date:   2023-03-14 (Tue, 14 Mar 2023)

  Changed paths:
    M LayoutTests/platform/gtk/TestExpectations
    M LayoutTests/platform/ios/TestExpectations
    M LayoutTests/swipe/resources/swipe-test.js
    A LayoutTests/swipe/swipe-back-with-active-wheel-listener-expected.txt
    A LayoutTests/swipe/swipe-back-with-active-wheel-listener.html
    A LayoutTests/swipe/swipe-back-with-passive-wheel-listener-expected.txt
    A LayoutTests/swipe/swipe-back-with-passive-wheel-listener.html
    A LayoutTests/swipe/wheel-prevent-default-prevents-swipe-back-expected.txt
    A LayoutTests/swipe/wheel-prevent-default-prevents-swipe-back.html
    M Tools/TestRunnerShared/EventSerialization/mac/SharedEventStreamsMac.mm

  Log Message:
  -----------
  Add some swipe tests with wheel event handlers
https://bugs.webkit.org/show_bug.cgi?id=253768
rdar://106604885

Reviewed by Tim Horton.

Add new tests to test the interaction between swipe gestures and wheel event
handlers. Two of these tests fail when using the built-in swipe gesture because
the events are fired so fast that the UI process queues them up in
WebWheelEventCoalescer::shouldDispatchEvent() and the swipe fails, so add
startSlowSwipeGesture() which waits for a rendering update between each event.

Clean up SharedEventStreamsMac.mm by sorting each dictionary (with no data changes).

Canonical link: https://commits.webkit.org/261666@main




More information about the webkit-changes mailing list