Bug 1101624. Try loading a real page after starting the progress listeners to fix browser_alltabslistener.js. r=Gijs

This commit is contained in:
Dave Townsend 2014-12-15 14:32:29 -08:00
parent 87cd4c7b30
commit 3c7f55c8ce

View File

@ -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);
}