mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1101624. Try loading a real page after starting the progress listeners to fix browser_alltabslistener.js. r=Gijs
This commit is contained in:
parent
87cd4c7b30
commit
3c7f55c8ce
@ -87,18 +87,20 @@ var gNextTest;
|
||||
function test() {
|
||||
waitForExplicitFinish();
|
||||
|
||||
gBackgroundTab = gBrowser.addTab(kBasePage);
|
||||
gForegroundTab = gBrowser.addTab(kBasePage);
|
||||
gBackgroundTab = gBrowser.addTab();
|
||||
gForegroundTab = gBrowser.addTab();
|
||||
gBackgroundBrowser = gBrowser.getBrowserForTab(gBackgroundTab);
|
||||
gForegroundBrowser = gBrowser.getBrowserForTab(gForegroundTab);
|
||||
gBrowser.selectedTab = gForegroundTab;
|
||||
|
||||
// We must wait until the about:blank page has completed loading before
|
||||
// We must wait until a page has completed loading before
|
||||
// starting tests or we get notifications from that
|
||||
let promises = [
|
||||
waitForDocLoadComplete(gBackgroundBrowser),
|
||||
waitForDocLoadComplete(gForegroundBrowser)
|
||||
];
|
||||
gBackgroundBrowser.loadURI(kBasePage);
|
||||
gForegroundBrowser.loadURI(kBasePage);
|
||||
Promise.all(promises).then(startTest1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user