forked from mirrors/gecko-dev
Bug 1371509 - fix issues with comparing window URIs in browser_auto_close_window.js, r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D11456 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
69654ea3f5
commit
7bdf01dfee
1 changed files with 3 additions and 6 deletions
|
|
@ -52,8 +52,7 @@ add_task(async function simple_navigation() {
|
||||||
await BrowserTestUtils.synthesizeMouseAtCenter("#regular_load", {}, browser);
|
await BrowserTestUtils.synthesizeMouseAtCenter("#regular_load", {}, browser);
|
||||||
let windowContext = await dialogAppeared;
|
let windowContext = await dialogAppeared;
|
||||||
|
|
||||||
is(windowContext.gBrowser.selectedBrowser.currentURI.spec, PAGE_URL,
|
is(windowContext, browser.ownerGlobal, "got the right windowContext");
|
||||||
"got the right windowContext");
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -70,8 +69,7 @@ async function testNewTab(browser) {
|
||||||
await BrowserTestUtils.synthesizeMouseAtCenter("#target_blank", {}, browser);
|
await BrowserTestUtils.synthesizeMouseAtCenter("#target_blank", {}, browser);
|
||||||
|
|
||||||
let windowContext = await dialogAppeared;
|
let windowContext = await dialogAppeared;
|
||||||
is(windowContext.gBrowser.selectedBrowser.currentURI.spec, targetURL,
|
is(windowContext, browser.ownerGlobal, "got the right windowContext");
|
||||||
"got the right windowContext");
|
|
||||||
let [ tab, closingPromise ] = await tabOpened;
|
let [ tab, closingPromise ] = await tabOpened;
|
||||||
await closingPromise;
|
await closingPromise;
|
||||||
is(tab.linkedBrowser, null, "tab was opened and closed");
|
is(tab.linkedBrowser, null, "tab was opened and closed");
|
||||||
|
|
@ -101,8 +99,7 @@ add_task(async function new_window() {
|
||||||
|
|
||||||
|
|
||||||
let windowContext = await dialogAppeared;
|
let windowContext = await dialogAppeared;
|
||||||
is(windowContext.gBrowser.selectedBrowser.currentURI.spec, PAGE_URL,
|
is(windowContext, browser.ownerGlobal, "got the right windowContext");
|
||||||
"got the right windowContext");
|
|
||||||
|
|
||||||
// The window should close on its own. If not, this test will time out.
|
// The window should close on its own. If not, this test will time out.
|
||||||
await BrowserTestUtils.domWindowClosed(win);
|
await BrowserTestUtils.domWindowClosed(win);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue