Open Bug 1134139 Opened 9 years ago Updated 2 years ago

Use BrowserTestUtils.waitForEvent() in /browser/ tests

Categories

(Firefox :: General, task)

task

Tracking

()

People

(Reporter: Unfocused, Unassigned)

References

(Depends on 1 open bug)

Details

(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.
Depends on: 1716982
Type: defect → task
Severity: normal → --
Depends on: 1367829
You need to log in before you can comment on or make changes to this bug.