Bug 1521887 - Fix browser_aboutdebugging_serviceworker_runtime-page.js for sw-e10s refactor;r=ladybenko

Depends on D19466

Differential Revision: https://phabricator.services.mozilla.com/D19469

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Julian Descottes 2019-02-14 22:32:34 +00:00
Родитель 3e8c931f9b
Коммит e7de1093e1
1 изменённых файлов: 4 добавлений и 5 удалений

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

@ -36,12 +36,11 @@ add_task(async function() {
// open a tab and register service worker
info("Register a service worker");
const swTab = await addTab(SW_TAB_URL);
// check that service worker is rendered
info("Wait for sw to appear in the debug pane list");
await waitUntil(() => {
swPane = getDebugTargetPane("Service Workers", document);
return swPane.querySelectorAll(".js-debug-target-item").length > 0;
});
info("Wait until the service worker appears and is running");
await waitForServiceWorkerRunning(SW_URL, document);
swPane = getDebugTargetPane("Service Workers", document);
ok(swPane.querySelectorAll(".js-debug-target-item").length === 1,
"Service worker list has one element");