Bug 1425393 - open sw tabs in background in about:debugging tests;r=ochameau

MozReview-Commit-ID: 8UyrTDtHa7b

--HG--
extra : rebase_source : ec05347a3fae742eb72fe489f204cd55b86cc195
This commit is contained in:
Julian Descottes 2017-12-12 15:49:36 -06:00
Родитель 7306351412
Коммит 5f1069a0f5
8 изменённых файлов: 8 добавлений и 8 удалений

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

@ -13,7 +13,7 @@ add_task(function* () {
let { tab, document } = yield openAboutDebugging("workers");
let swTab = yield addTab(TAB_URL);
let swTab = yield addTab(TAB_URL, { background: true });
let serviceWorkersElement = getServiceWorkerList(document);

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

@ -12,7 +12,7 @@ function* testBody(url, expecting) {
yield enableServiceWorkerDebugging();
let { tab, document } = yield openAboutDebugging("workers");
let swTab = yield addTab(url);
let swTab = yield addTab(url, {background: true});
let serviceWorkersElement = getServiceWorkerList(document);

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

@ -22,7 +22,7 @@ add_task(function* () {
let serviceWorkersElement = getServiceWorkerList(document);
// Open a tab that registers a push service worker.
let swTab = yield addTab(TAB_URL);
let swTab = yield addTab(TAB_URL, { background: true });
info("Make the test page notify us when the service worker sends a message.");

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

@ -58,7 +58,7 @@ add_task(function* () {
let serviceWorkersElement = document.getElementById("service-workers");
// Open a tab that registers a push service worker.
let swTab = yield addTab(TAB_URL);
let swTab = yield addTab(TAB_URL, { background: true });
info("Wait until the service worker appears in about:debugging");
yield waitUntilServiceWorkerContainer(SERVICE_WORKER, document);

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

@ -25,7 +25,7 @@ add_task(function* () {
let serviceWorkersElement = getServiceWorkerList(document);
// Open a tab that registers an empty service worker.
let swTab = yield addTab(TAB_URL);
let swTab = yield addTab(TAB_URL, { background: true });
// Wait for the service-workers list to update.
info("Wait until the service worker appears in about:debugging");

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

@ -21,7 +21,7 @@ add_task(function* () {
// Listen for mutations in the service-workers list.
let serviceWorkersElement = getServiceWorkerList(document);
let swTab = yield addTab(TAB_URL);
let swTab = yield addTab(TAB_URL, { background: true });
info("Wait until the service worker appears in about:debugging");
let container = yield waitUntilServiceWorkerContainer(SERVICE_WORKER, document);

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

@ -20,7 +20,7 @@ add_task(function* () {
let serviceWorkersElement = getServiceWorkerList(document);
let swTab = yield addTab(TAB_URL);
let swTab = yield addTab(TAB_URL, { background: true });
info("Wait until the service worker appears in about:debugging");
yield waitUntilServiceWorkerContainer(SERVICE_WORKER, document);

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

@ -20,7 +20,7 @@ add_task(function* () {
let { tab, document } = yield openAboutDebugging("workers");
// Open a tab that registers an empty service worker.
let swTab = yield addTab(TAB_URL);
let swTab = yield addTab(TAB_URL, { background: true });
info("Wait until the service worker appears in about:debugging");
yield waitUntilServiceWorkerContainer(SERVICE_WORKER, document);