REOPENED Bug 162099
Web Inspector: adopt Object.awaitEvent in LayoutTests/inspector/network
https://bugs.webkit.org/show_bug.cgi?id=162099
Summary Web Inspector: adopt Object.awaitEvent in LayoutTests/inspector/network
Devin Rousso
Reported 2016-09-16 16:41:05 PDT
.
Attachments
Patch (7.44 KB, patch)
2016-09-16 16:45 PDT, Devin Rousso
no flags
Radar WebKit Bug Importer
Comment 1 2016-09-16 16:41:53 PDT
Devin Rousso
Comment 2 2016-09-16 16:45:17 PDT
Blaze Burg
Comment 3 2016-09-19 07:56:18 PDT
Comment on attachment 289137 [details] Patch r=me
WebKit Commit Bot
Comment 4 2016-09-19 13:47:29 PDT
Comment on attachment 289137 [details] Patch Clearing flags on attachment: 289137 Committed r206112: <http://trac.webkit.org/changeset/206112>
WebKit Commit Bot
Comment 5 2016-09-19 13:47:33 PDT
All reviewed patches have been landed. Closing bug.
Ryan Haddad
Comment 6 2016-09-22 11:22:06 PDT
Reverted r206112 for reason: This change made inspector/network/xhr-json-blob-has-content.html very flaky. Committed r206263: <http://trac.webkit.org/changeset/206263>
Ryan Haddad
Comment 7 2016-09-22 11:23:02 PDT
*** Bug 162360 has been marked as a duplicate of this bug. ***
Joseph Pecoraro
Comment 8 2016-09-22 12:07:02 PDT
Comment on attachment 289137 [details] Patch I really find these changes much harder to read then the original test. The original test read: "do this, cause and do this" Now they read: "prepare for some stuff, do this" Am I alone in this?
Blaze Burg
Comment 9 2016-09-22 14:06:01 PDT
(In reply to comment #8) > Comment on attachment 289137 [details] > Patch > > I really find these changes much harder to read then the original test. The > original test read: > > "do this, cause and do this" > > Now they read: > > "prepare for some stuff, do this" > > Am I alone in this? I think so? It's not always possible to make the test linear like that, then the promise chain kicks off at some random awkward part of the test. I prefer making the test explicitly event-based with the trigger at the end rather than implicitly depending on evaluating script being asynchronous. That way, the test is structured the same way (prep + trigger) whether the initial part of the promise chain is triggered by synchronous events from WI.Object or from async backend commands that have responses or cause events.
Note You need to log in before you can comment on or make changes to this bug.