Changeset 246897 in webkit


Ignore:
Timestamp:
Jun 27, 2019 12:43:41 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

pointerevents/ios/pointer-events-implicit-capture.html fails on iOS
https://bugs.webkit.org/show_bug.cgi?id=199259

Patch by Antoine Quint <Antoine Quint> on 2019-06-27
Reviewed by Dean Jackson.

The assumptions made by this test were incorrect. The "gotpointercapture" event should not be dispatched
until the next pointer event is dispatched after setting pointer capture. Even though pointer capture is
set implicitly on "pointerdown" on non-mouse devices, the event will only be fired once a "pointermove" or
"pointerup" event is dispatched.

  • pointerevents/ios/pointer-events-implicit-capture.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r246894 r246897  
     12019-06-27  Antoine Quint  <graouts@apple.com>
     2
     3        pointerevents/ios/pointer-events-implicit-capture.html fails on iOS
     4        https://bugs.webkit.org/show_bug.cgi?id=199259
     5
     6        Reviewed by Dean Jackson.
     7
     8        The assumptions made by this test were incorrect. The "gotpointercapture" event should not be dispatched
     9        until the next pointer event is dispatched after setting pointer capture. Even though pointer capture is
     10        set implicitly on "pointerdown" on non-mouse devices, the event will only be fired once a "pointermove" or
     11        "pointerup" event is dispatched.
     12
     13        * pointerevents/ios/pointer-events-implicit-capture.html:
     14
    1152019-06-27  Devin Rousso  <drousso@apple.com>
    216
  • trunk/LayoutTests/pointerevents/ios/pointer-events-implicit-capture.html

    r245505 r246897  
    2929        eventTracker.assertMatchesEvents([
    3030            { id: 1, type: "pointerdown" },
     31            { id: 2, type: "pointerdown" },
    3132            { id: 1, type: "gotpointercapture", isPrimary: true },
    32             { id: 2, type: "pointerdown" },
     33            { id: 1, type: "pointermove" },
    3334            { id: 2, type: "gotpointercapture", isPrimary: false },
    34             { id: 1, type: "pointermove" },
    3535            { id: 2, type: "pointermove" },
    3636            { id: 1, type: "pointerup" },
Note: See TracChangeset for help on using the changeset viewer.