Changeset 244461 in webkit
- Timestamp:
- Apr 19, 2019 12:33:23 PM (5 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r244449 r244461 1 2019-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 1 16 2019-04-18 Megan Gardner <megan_gardner@apple.com> 2 17 -
trunk/LayoutTests/editing/execCommand/insert-nested-lists.html
r237976 r244461 24 24 // By default, AppKit on macOS coalesces undo operations that occur within the same runloop. Wait until the next 25 25 // 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 }); 27 32 28 33 document.execCommand("InsertNestedUnorderedList");
Note: See TracChangeset
for help on using the changeset viewer.