Closed Bug 1442153 Opened 5 years ago Closed 5 years ago

browser_inspector_expand-collapse.js fails when converted to async/await instead of Task


(DevTools :: Inspector, defect, P3)



(firefox61 fixed)

Firefox 61
Tracking Status
firefox61 --- fixed


(Reporter: ochameau, Assigned: yulia)




(1 file, 2 obsolete files)

$ ./mach mochitest devtools/client/inspector/test/browser_inspector_expand-collapse.js

fails with this error:

TEST-UNEXPECTED-FAIL | devtools/client/inspector/test/browser_inspector_expand-collapse.js | node has been successfully expanded
Hum, that's fascinating, the error from comment 0 happens when you are based on top of my WIP patch for bug 1440321 (converting the whole client folder to async/await)

On top of m-c tip, you get this error instead:
TEST-UNEXPECTED-FAIL | devtools/client/inspector/test/browser_inspector_expand-collapse.js | Uncaught exception - Protocol error (unknownError): '' is not a valid selector

Note that is may be related to bug 1441531 as this test also uses waitForMultipleChildrenUpdates.
Assignee: nobody → ystartsev
This is related to the changes in bug 1441531. We will need to wait for those changes to land before we can merge the fix for this. I'm running try now to make sure nothing else broke.
Depends on: 1441531
Attachment #8955041 - Attachment is obsolete: true
Generators have some funny behavior with async/await it looks like... It was returning a generator object rather than the return value. Since no other tests were relying on the function in question i updated it to be async/await as well
Comment on attachment 8959623 [details]
Bug 1442153 - Convert browser_inspector_expand-collaps.js to async await and getNodeFrontForSelector in test/head.

Thanks Yulia, do not hesitate to squash my change into yours.
Attachment #8959623 - Flags: review?(poirot.alex) → review+
Priority: -- → P3
Attachment #8959623 - Attachment is obsolete: true
Comment on attachment 8962358 [details]
Bug 1442153 - Convert browser_inspector_expand-collapse.js to async/await.
Attachment #8962358 - Flags: review?(poirot.alex) → review+
Pushed by
Convert browser_inspector_expand-collapse.js to async/await. r=ochameau
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.