Open Bug 1134139 Opened 6 years ago Updated 2 years ago

Use BrowserTestUtils.waitForEvent() in /browser/ tests


(Firefox :: General, defect)

Not set




(Reporter: Unfocused, Unassigned)


(Whiteboard: [good second bug][lang=js])

Bug 1123517 adds a BrowserUITestUtils.jsm testing module for use in tests, and implements waitForEvent. Numerous test files and head.js files have their own duplicate implementation of this function (waitForEvent/promiseWaitForEvent). Those can now be removed, in favour of importing BrowserUITestUtils.jsm and using that.

It can be imported as resource://testing-common/BrowserUITestUtils.jsm
As discussed in Bug 1093566, BrowserUITestUtils is going to be migrated into the testing directory and directly introduced into mochitest-browser scope (combined with BrowserTestUtils).
Summary: Use BrowserUITestUtils.waitForEvent() in /browser/ tests → Use BrowserTestUtils.waitForEvent() in /browser/ tests
Is this bug still active?
Flags: needinfo?(dolske)
No one is working on this bug.
Flags: needinfo?(dolske)
I would like to take this one.
You need to log in before you can comment on or make changes to this bug.