Add some tab switching methods to BrowserTestUtils.jsm

RESOLVED FIXED in Firefox 40

Status

Testing
Mochitest
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: Neil Deakin, Assigned: Neil Deakin)

Tracking

unspecified
mozilla40
Points:
2

Firefox Tracking Flags

(firefox40 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

3 years ago
Created attachment 8590899 [details] [diff] [review]
browsertestutils-switchtab

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+

Comment 1

3 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/89b7b782be18
https://hg.mozilla.org/mozilla-central/rev/89b7b782be18
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
status-firefox40: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.