зеркало из https://github.com/mozilla/gecko-dev.git
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 : 82778ac2357f9bf96209001275ae5c7cac7c8c75 extra : source : c14ccfac7b4b635cad9f728b85767deef68078be
This commit is contained in:
Родитель
6989766387
Коммит
a01bd448e2
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче