mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
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:
parent
2da14c0702
commit
aec4f03b2a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user