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

Changeset 249072 in webkit


Ignore:
Timestamp:
Aug 23, 2019, 3:54:48 PM (7 years ago)
Author:
timothy_horton@apple.com
Message:

REGRESSION (r248974): fast/events/ios/key-command-delete-to-end-of-paragraph.html is timing out on iOS
https://bugs.webkit.org/show_bug.cgi?id=201091
<rdar://problem/54647731>

Reviewed by Megan Gardner.

  • fast/events/ios/key-command-delete-to-end-of-paragraph.html:

The test as-written doesn't actually wait for the tap to complete before
continuing on with the test - it starts immediately when the focus event
fires. This results in the selection being changed by the single click
handler *after* focusing the field.

Rewrite the test to await completion of the tap before moving forward
instead of waiting for focus.

Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r249066 r249072  
     12019-08-23  Tim Horton  <timothy_horton@apple.com>
     2
     3        REGRESSION (r248974): fast/events/ios/key-command-delete-to-end-of-paragraph.html is timing out on iOS
     4        https://bugs.webkit.org/show_bug.cgi?id=201091
     5        <rdar://problem/54647731>
     6
     7        Reviewed by Megan Gardner.
     8
     9        * fast/events/ios/key-command-delete-to-end-of-paragraph.html:
     10        The test as-written doesn't actually wait for the tap to complete before
     11        continuing on with the test - it starts immediately when the focus event
     12        fires. This results in the selection being changed by the single click
     13        handler *after* focusing the field.
     14
     15        Rewrite the test to await completion of the tap before moving forward
     16        instead of waiting for focus.
     17
    1182019-08-23  Chris Dumez  <cdumez@apple.com>
    219
  • trunk/LayoutTests/fast/events/ios/key-command-delete-to-end-of-paragraph.html

    r241284 r249072  
    3636}
    3737
    38 function runTest()
     38async function runTest()
    3939{
    4040    if (!window.testRunner)
     
    4949            UIHelper.keyDown("k", ["ctrlKey"]);
    5050    }
    51     testElement.addEventListener("focus", handleFocus, { once: true });
    52     if (window.testRunner)
    53         UIHelper.activateElement(testElement);
     51
     52    if (window.testRunner) {
     53        await UIHelper.activateElement(testElement);
     54        handleFocus();
     55    } else
     56        testElement.addEventListener("focus", handleFocus, { once: true });
    5457}
    5558
Note: See TracChangeset for help on using the changeset viewer.