RESOLVED FIXED202649
Web Inspector: inspector/layers/layers-for-node.html and inspector/timeline/line-column.html are flaky
https://bugs.webkit.org/show_bug.cgi?id=202649
Summary Web Inspector: inspector/layers/layers-for-node.html and inspector/timeline/...
Yury Semikhatsky
Reported 2019-10-07 13:10:49 PDT
Attachments
Patch (7.19 KB, patch)
2019-10-07 13:18 PDT, Yury Semikhatsky
no flags
Patch (7.08 KB, patch)
2019-10-07 14:13 PDT, Yury Semikhatsky
no flags
Yury Semikhatsky
Comment 1 2019-10-07 13:18:52 PDT
Devin Rousso
Comment 2 2019-10-07 13:53:25 PDT
Comment on attachment 380350 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=380350&action=review rs=me > LayoutTests/inspector/layers/layers-for-node.html:25 > + layersChanged = InspectorProtocol.awaitEvent({event: "LayerTree.layerTreeDidChange"}) Frankly, given that `enableLayerTreeAgent` is called synchronously at the start of the test, perhaps we should just inline this at the top of `test` as a sort of "make sure we get at least one of these before continuing with the rest of the test". > LayoutTests/inspector/layers/layers-for-node.html:36 > + layersChanged.then(() => step({ Style: if the body of the arrow function is more than one line (or the value isn't intended as the return value), we add the `{ ... }` to the arrow function. ```js layersChanged.then(() => { step({ ... }); }); ```
Yury Semikhatsky
Comment 3 2019-10-07 14:13:40 PDT
Yury Semikhatsky
Comment 4 2019-10-07 14:14:24 PDT
Comment on attachment 380350 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=380350&action=review >> LayoutTests/inspector/layers/layers-for-node.html:25 >> + layersChanged = InspectorProtocol.awaitEvent({event: "LayerTree.layerTreeDidChange"}) > > Frankly, given that `enableLayerTreeAgent` is called synchronously at the start of the test, perhaps we should just inline this at the top of `test` as a sort of "make sure we get at least one of these before continuing with the rest of the test". Done. >> LayoutTests/inspector/layers/layers-for-node.html:36 >> + layersChanged.then(() => step({ > > Style: if the body of the arrow function is more than one line (or the value isn't intended as the return value), we add the `{ ... }` to the arrow function. > ```js > layersChanged.then(() => { > step({ > ... > }); > }); > ``` Moved this logic out of the method.
Devin Rousso
Comment 5 2019-10-08 15:01:32 PDT
Comment on attachment 380361 [details] Patch rs=me
WebKit Commit Bot
Comment 6 2019-10-08 16:03:08 PDT
Comment on attachment 380361 [details] Patch Clearing flags on attachment: 380361 Committed r250872: <https://trac.webkit.org/changeset/250872>
WebKit Commit Bot
Comment 7 2019-10-08 16:03:10 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8 2019-10-08 16:04:21 PDT
Note You need to log in before you can comment on or make changes to this bug.