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

MozReview-Commit-ID: 8UyrTDtHa7b

--HG--
extra : rebase_source : 2737c3a0b354215713714e6b03c0e76e638fef9d
This commit is contained in:
Julian Descottes 2017-12-12 15:49:36 -06:00
parent 2da14c0702
commit aec4f03b2a
8 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

@ -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.");

View File

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

View File

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

View File

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

View File

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

View File

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