Changeset 244461 in webkit


Ignore:
Timestamp:
Apr 19, 2019 12:33:23 PM (5 years ago)
Author:
rniwa@webkit.org
Message:

REGRESSION: (r244182) Layout Test editing/execCommand/insert-nested-lists.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=196985

Reviewed by Wenson Hsieh.

The flakiness was caused by the test incorrectly assuming that rAF would
be enough to close the undo group in the UI process.

Fixed the test by explicitly waiting for the runloop in the ui process to run
by executing a UI script.

  • editing/execCommand/insert-nested-lists.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r244449 r244461  
     12019-04-19  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        REGRESSION: (r244182) Layout Test editing/execCommand/insert-nested-lists.html is flaky
     4        https://bugs.webkit.org/show_bug.cgi?id=196985
     5
     6        Reviewed by Wenson Hsieh.
     7
     8        The flakiness was caused by the test incorrectly assuming that rAF would
     9        be enough to close the undo group in the UI process.
     10
     11        Fixed the test by explicitly waiting for the runloop in the ui process to run
     12        by executing a UI script.
     13
     14        * editing/execCommand/insert-nested-lists.html:
     15
    1162019-04-18  Megan Gardner  <megan_gardner@apple.com>
    217
  • trunk/LayoutTests/editing/execCommand/insert-nested-lists.html

    r237976 r244461  
    2424    // By default, AppKit on macOS coalesces undo operations that occur within the same runloop. Wait until the next
    2525    // runloop before inserting another unordered list to ensure that it gets its own entry in the undo stack.
    26     await new Promise(resolve => requestAnimationFrame(resolve));
     26    await new Promise((resolve) => {
     27        if (window.testRunner)
     28            testRunner.runUIScript(`(function() { uiController.uiScriptComplete(); })()`, resolve);
     29        else
     30            setTimeout(resolve, 500);
     31    });
    2732
    2833    document.execCommand("InsertNestedUnorderedList");
Note: See TracChangeset for help on using the changeset viewer.