Title: [244461] trunk/LayoutTests
- Revision
- 244461
- Author
- [email protected]
- Date
- 2019-04-19 12:33:23 -0700 (Fri, 19 Apr 2019)
Log 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:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (244460 => 244461)
--- trunk/LayoutTests/ChangeLog 2019-04-19 19:13:35 UTC (rev 244460)
+++ trunk/LayoutTests/ChangeLog 2019-04-19 19:33:23 UTC (rev 244461)
@@ -1,3 +1,18 @@
+2019-04-19 Ryosuke Niwa <[email protected]>
+
+ 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:
+
2019-04-18 Megan Gardner <[email protected]>
Update autoscroll test to lift at the end and be less flakey
Modified: trunk/LayoutTests/editing/execCommand/insert-nested-lists.html (244460 => 244461)
--- trunk/LayoutTests/editing/execCommand/insert-nested-lists.html 2019-04-19 19:13:35 UTC (rev 244460)
+++ trunk/LayoutTests/editing/execCommand/insert-nested-lists.html 2019-04-19 19:33:23 UTC (rev 244461)
@@ -23,7 +23,12 @@
// By default, AppKit on macOS coalesces undo operations that occur within the same runloop. Wait until the next
// runloop before inserting another unordered list to ensure that it gets its own entry in the undo stack.
- await new Promise(resolve => requestAnimationFrame(resolve));
+ await new Promise((resolve) => {
+ if (window.testRunner)
+ testRunner.runUIScript(`(function() { uiController.uiScriptComplete(); })()`, resolve);
+ else
+ setTimeout(resolve, 500);
+ });
document.execCommand("InsertNestedUnorderedList");
Markup.dump("editor", "After the second unordered list insertion");
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes