⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 245659 in webkit


Ignore:
Timestamp:
May 22, 2019, 4:46:28 PM (7 years ago)
Author:
Simon Fraser
Message:

<rdar://problem/50058173> REGRESSION (r243347) Layout tests fast/events/touch/ios/drag-block-without-overflow-scroll-and-passive-observer-on* are failing

Unreviewed test gardening.

I confirmed that “cancelable” is no longer true because
WebPageProxy::handleTouchEventSynchronously() is dispatching the events
asynchronously, so setCanPreventNativeGestures is set to false.

The exception is because the “touchEnd” event has no touches.

  • fast/events/touch/ios/drag-block-without-overflow-scroll-and-passive-observer-on-block-expected.txt:
  • fast/events/touch/ios/drag-block-without-overflow-scroll-and-passive-observer-on-block.html:
  • fast/events/touch/ios/drag-block-without-overflow-scroll-and-passive-observer-on-document-expected.txt:
  • fast/events/touch/ios/drag-block-without-overflow-scroll-and-passive-observer-on-document.html:
Location:
trunk/LayoutTests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r245656 r245659  
     12019-05-22  Simon Fraser  <simon.fraser@apple.com>
     2
     3        <rdar://problem/50058173> REGRESSION (r243347) Layout tests fast/events/touch/ios/drag-block-without-overflow-scroll-and-passive-observer-on* are failing
     4
     5        Unreviewed test gardening.
     6
     7        I confirmed that “cancelable” is no longer true because
     8        WebPageProxy::handleTouchEventSynchronously() is dispatching the events
     9        asynchronously, so setCanPreventNativeGestures is set to false.
     10
     11        The exception is because the “touchEnd” event has no touches.
     12
     13        * fast/events/touch/ios/drag-block-without-overflow-scroll-and-passive-observer-on-block-expected.txt:
     14        * fast/events/touch/ios/drag-block-without-overflow-scroll-and-passive-observer-on-block.html:
     15        * fast/events/touch/ios/drag-block-without-overflow-scroll-and-passive-observer-on-document-expected.txt:
     16        * fast/events/touch/ios/drag-block-without-overflow-scroll-and-passive-observer-on-document.html:
     17
    1182019-05-22  Simon Fraser  <simon.fraser@apple.com>
    219
  • trunk/LayoutTests/fast/events/touch/ios/drag-block-without-overflow-scroll-and-passive-observer-on-block-expected.txt

    r202531 r245659  
    1111PASS document.getElementById('eventTarget').scrollTop is 0
    1212PASS document.getElementById('eventTarget').scrollLeft is 0
    13 Received cancelable event touchstart at 50, 150
    14 Received cancelable event touchmove at 50, 50
     13Received event touchstart at 50, 150
     14Received event touchmove at 50, 50
     15Received event touchend
     16Dispatched Drag
    1517PASS window.scrollX is 0
    1618PASS window.scrollY is 0
  • trunk/LayoutTests/fast/events/touch/ios/drag-block-without-overflow-scroll-and-passive-observer-on-block.html

    r243347 r245659  
    4646
    4747            function touchEventHandler(event) {
    48                 debug("Received" + (event.cancelable ? " cancelable" : "") + " event " + event.type + " at " + event.touches[0].clientX + ", " + event.touches[0].clientY);
     48                if (event.touches.length)
     49                    debug("Received" + (event.cancelable ? " cancelable" : "") + " event " + event.type + " at " + event.touches[0].clientX + ", " + event.touches[0].clientY);
     50                else
     51                    debug("Received" + (event.cancelable ? " cancelable" : "") + " event " + event.type);
    4952            }
    5053            eventTarget.addEventListener('touchstart', touchEventHandler, { 'passive': true });
  • trunk/LayoutTests/fast/events/touch/ios/drag-block-without-overflow-scroll-and-passive-observer-on-document-expected.txt

    r202531 r245659  
    1111PASS document.getElementById('eventTarget').scrollTop is 0
    1212PASS document.getElementById('eventTarget').scrollLeft is 0
    13 Received cancelable event touchstart at 50, 150
    14 Received cancelable event touchmove at 50, 50
     13Received event touchstart at 50, 150
     14Received event touchmove at 50, 50
     15Received event touchend
     16Dispatched Drag
    1517PASS window.scrollX is 0
    1618PASS window.scrollY is 0
  • trunk/LayoutTests/fast/events/touch/ios/drag-block-without-overflow-scroll-and-passive-observer-on-document.html

    r243347 r245659  
    4646
    4747            function touchEventHandler(event) {
    48                 debug("Received" + (event.cancelable ? " cancelable" : "") + " event " + event.type + " at " + event.touches[0].clientX + ", " + event.touches[0].clientY);
     48                if (event.touches.length)
     49                    debug("Received" + (event.cancelable ? " cancelable" : "") + " event " + event.type + " at " + event.touches[0].clientX + ", " + event.touches[0].clientY);
     50                else
     51                    debug("Received" + (event.cancelable ? " cancelable" : "") + " event " + event.type);
    4952            }
    5053            document.addEventListener('touchstart', touchEventHandler, { 'passive': true });
Note: See TracChangeset for help on using the changeset viewer.