I found a use for this.
Created attachment 328916 [details] Proposed Fix
Comment on attachment 328916 [details] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=328916&action=review > Source/WebInspectorUI/UserInterface/Test/TestSuite.js:142 > + if (testcase.test[Symbol.toStringTag] === "AsyncFunction") So if test case.test() is async, then we assume testcase.setup() is too? Or should this test testcase.setup[Symbol.toStringTag]? Assert here one way or another? > Source/WebInspectorUI/UserInterface/Test/TestSuite.js:163 > + if (testcase.test[Symbol.toStringTag] === "AsyncFunction") Ditto for testcase.teardown().
(In reply to Timothy Hatcher from comment #2) > Comment on attachment 328916 [details] > Proposed Fix > > View in context: > https://bugs.webkit.org/attachment.cgi?id=328916&action=review > > > Source/WebInspectorUI/UserInterface/Test/TestSuite.js:142 > > + if (testcase.test[Symbol.toStringTag] === "AsyncFunction") > > So if test case.test() is async, then we assume testcase.setup() is too? Or > should this test testcase.setup[Symbol.toStringTag]? Assert here one way or > another? > > > Source/WebInspectorUI/UserInterface/Test/TestSuite.js:163 > > + if (testcase.test[Symbol.toStringTag] === "AsyncFunction") > > Ditto for testcase.teardown(). Ooh, copypasta. It's supposed to be .setup and .teardown.
Created attachment 329152 [details] Proposed Fix
Comment on attachment 329152 [details] Proposed Fix Clearing flags on attachment: 329152 Committed r225820: <https://trac.webkit.org/changeset/225820>
All reviewed patches have been landed. Closing bug.
<rdar://problem/36008686>