Changeset 246673 in webkit


Ignore:
Timestamp:
Jun 21, 2019 12:05:10 AM (5 years ago)
Author:
graouts@webkit.org
Message:

fast/events/ios/click-event-and-display-contents.html times out on iPad
https://bugs.webkit.org/show_bug.cgi?id=199068
<rdar://problem/51899547>

Reviewed by Dean Jackson.

Querying the bounds of a "display: contents" element will always return 0 width and height. So let's position the element at 0,0
so that we can send a tap at that location and reliably tap on that element.

  • fast/events/ios/click-event-and-display-contents.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r246668 r246673  
     12019-06-20  Antoine Quint  <graouts@apple.com>
     2
     3        fast/events/ios/click-event-and-display-contents.html times out on iPad
     4        https://bugs.webkit.org/show_bug.cgi?id=199068
     5        <rdar://problem/51899547>
     6
     7        Reviewed by Dean Jackson.
     8
     9        Querying the bounds of a "display: contents" element will always return 0 width and height. So let's position the element at 0,0
     10        so that we can send a tap at that location and reliably tap on that element.
     11
     12        * fast/events/ios/click-event-and-display-contents.html:
     13
    1142019-06-20  Simon Fraser  <simon.fraser@apple.com>
    215
  • trunk/LayoutTests/fast/events/ios/click-event-and-display-contents.html

    r246404 r246673  
    55<script src="../../../resources/basic-gestures.js"></script>
    66<style>
     7
     8body {
     9    margin: 0;
     10}
     11
    712#target {
    813    width: 100px;
     
    2732
    2833    target.addEventListener("click", event => {
    29         document.getElementById("target").innerText = "PASS";
     34        target.innerText = "PASS";
    3035        testRunner.notifyDone();
    3136    });
    3237
    33     const bounds = target.getBoundingClientRect();
    34     const x = bounds.left + bounds.width / 2;
    35     const y = bounds.top + bounds.height / 2;
    36     tapAtPoint(x, y);
     38    tapAtPoint(0, 0);
    3739})();
    3840
Note: See TracChangeset for help on using the changeset viewer.