Changeset 210538 in webkit


Ignore:
Timestamp:
Jan 9, 2017 11:02:20 PM (7 years ago)
Author:
rniwa@webkit.org
Message:

Add an iOS test for tapping on a text node assigned to a slot
https://bugs.webkit.org/show_bug.cgi?id=166877

Reviewed by Andy Estes.

Add a test for tapping on a text node assigned to a slot.
touchstart event must be fired on a parent of the slot with a touch event handler.

  • TestExpectations:
  • fast/shadow-dom/touch-event-on-text-assigned-to-slot-expected.txt: Added.
  • fast/shadow-dom/touch-event-on-text-assigned-to-slot.html: Added.
  • resources/ui-helper.js:

(window.UIHelper.tapAt): Added.

Location:
trunk/LayoutTests
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r210537 r210538  
     12017-01-09  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Add an iOS test for tapping on a text node assigned to a slot
     4        https://bugs.webkit.org/show_bug.cgi?id=166877
     5
     6        Reviewed by Andy Estes.
     7
     8        Add a test for tapping on a text node assigned to a slot.
     9        touchstart event must be fired on a parent of the slot with a touch event handler.
     10
     11        * TestExpectations:
     12        * fast/shadow-dom/touch-event-on-text-assigned-to-slot-expected.txt: Added.
     13        * fast/shadow-dom/touch-event-on-text-assigned-to-slot.html: Added.
     14        * resources/ui-helper.js:
     15        (window.UIHelper.tapAt): Added.
     16
    1172017-01-09  Yusuke Suzuki  <utatane.tea@gmail.com>
    218
  • trunk/LayoutTests/TestExpectations

    r210147 r210538  
    3333media/controls/ipad [ Skip ]
    3434fast/text-autosizing [ Skip ]
     35
     36fast/shadow-dom/touch-event-on-text-assigned-to-slot.html [ Skip ]
    3537
    3638fast/forms/attributed-strings.html [ Skip ]
  • trunk/LayoutTests/platform/ios-simulator/TestExpectations

    r210491 r210538  
    142142fast/events/touch [ Skip ]
    143143fast/shadow-dom/touch-event-ios.html [ Skip ]
     144fast/shadow-dom/touch-event-on-text-assigned-to-slot.html [ Skip ]
    144145http/tests/quicklook/at-import-stylesheet-blocked.html [ Skip ]
    145146http/tests/quicklook/base-url-blocked.html [ Skip ]
  • trunk/LayoutTests/resources/ui-helper.js

    r209833 r210538  
    99    {
    1010        return window.testRunner.isWebKit2;
     11    }
     12
     13    static tapAt(x, y)
     14    {
     15        console.assert(this.isIOS());
     16
     17        if (!this.isWebKit2()) {
     18            eventSender.addTouchPoint(x, y);
     19            eventSender.touchStart();
     20            eventSender.releaseTouchPoint(0);
     21            eventSender.touchEnd();
     22            return Promise.resolve();
     23        }
     24
     25        return new Promise((resolve) => {
     26            testRunner.runUIScript(`
     27                uiController.singleTapAtPoint(${x}, ${y}, function() {
     28                    uiController.uiScriptComplete('Done');
     29                });`, resolve);
     30        });
    1131    }
    1232
Note: See TracChangeset for help on using the changeset viewer.