Use BrowserTestUtils.waitForEvent() in /browser/ tests

NEW
Unassigned

Status

()

4 years ago
5 months ago

People

(Reporter: Unfocused, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

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.
You need to log in before you can comment on or make changes to this bug.