Bug 1261842 - Make browser_testOpenNewRemoteTabsFromNonRemoteBrowsers.js wait for windows to be ready before sending them places. r=Gijs

MozReview-Commit-ID: 3sunq7zrr0e

--HG--
extra : rebase_source : 8806c2b988d2e18b1535d69e0ce1eca4c988662c
This commit is contained in:
Mike Conley 2016-06-08 11:56:54 -04:00
Родитель 53af48f5bc
Коммит 584249603d
1 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -38,13 +38,13 @@ registerCleanupFunction(() => {
* browser in an e10s window, that the new tab will load properly.
*/
add_task(function* test_new_tab() {
let normalWindow = yield promiseOpenAndLoadWindow({
remote: true
}, true);
let privateWindow = yield promiseOpenAndLoadWindow({
let normalWindow = yield BrowserTestUtils.openNewBrowserWindow({
remote: true,
});
let privateWindow = yield BrowserTestUtils.openNewBrowserWindow({
remote: true,
private: true,
}, true);
});
for (let testWindow of [normalWindow, privateWindow]) {
yield promiseWaitForFocus(testWindow);
@ -80,10 +80,10 @@ add_task(function* test_new_tab() {
* window. Also tests with a private browsing window.
*/
add_task(function* test_new_window() {
let normalWindow = yield promiseOpenAndLoadWindow({
let normalWindow = yield BrowserTestUtils.openNewBrowserWindow({
remote: true
}, true);
let privateWindow = yield promiseOpenAndLoadWindow({
let privateWindow = yield BrowserTestUtils.openNewBrowserWindow({
remote: true,
private: true,
}, true);