Closed Bug 1153289 Opened 9 years ago Closed 9 years ago

Add some tab switching methods to BrowserTestUtils.jsm

Categories

(Testing :: Mochitest, defect)

defect
Not set
normal
Points:
2

Tracking

(firefox40 fixed)

RESOLVED FIXED
mozilla40
Iteration:
40.1 - 13 Apr
Tracking Status
firefox40 --- fixed

People

(Reporter: enndeakin, Assigned: enndeakin)

Details

Attachments

(1 file)

Two methods are added, which I've used to fix a bunch of tests.

BrowserTestUtils.switchTab switches to a tab and waits for it to be ready. Currently, this is done using the TabSwitchDone event which fires after the tab switch has finished.

BrowserTestUtils.openNewForegroundTab opens a new foreground tab and waits for it to be ready, and optionally, loaded. Unlike withNewTab, it doesn't close the tab, which I updated to call openNewForegroundTab.
Attachment #8590899 - Flags: review?(felipc)
Attachment #8590899 - Flags: review?(felipc) → review+
https://hg.mozilla.org/mozilla-central/rev/89b7b782be18
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: