| Summary: | [ macOS wk1 ] editing/execCommand/insert-nested-lists.html is flaky failing | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jacob Uphoff <jacob_uphoff> | ||||
| Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | rniwa, tsavell, webkit-bot-watchers-bugzilla, webkit-bug-importer, wenson_hsieh | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Jacob Uphoff
2020-01-31 13:13:22 PST
Created attachment 389398 [details]
Update Test Expectations
Comment on attachment 389398 [details] Update Test Expectations Clearing flags on attachment: 389398 Committed r255520: <https://trac.webkit.org/changeset/255520> Presumably this part is insufficient to deflake it?
// 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) => {
if (window.testRunner)
testRunner.runUIScript(`(function() { uiController.uiScriptComplete(); })()`, resolve);
else
setTimeout(resolve, 500);
});
(In reply to Alexey Proskuryakov from comment #4) > Presumably this part is insufficient to deflake it? > > // 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) => { > if (window.testRunner) > testRunner.runUIScript(`(function() { > uiController.uiScriptComplete(); })()`, resolve); > else > setTimeout(resolve, 500); > }); Hm... going to the UI script in theory should be sufficient but I guess not. (In reply to Ryosuke Niwa from comment #5) > (In reply to Alexey Proskuryakov from comment #4) > > Presumably this part is insufficient to deflake it? > > > > // 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) => { > > if (window.testRunner) > > testRunner.runUIScript(`(function() { > > uiController.uiScriptComplete(); })()`, resolve); > > else > > setTimeout(resolve, 500); > > }); > > Hm... going to the UI script in theory should be sufficient but I guess not. I’m not sure if runUIScript is sufficient to ensure that the we proceed after the next runloop in WebKit1. Maybe we need to call uiController.doAsyncTask() instead? |