Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: LayoutTests/http/tests/serviceworker/resources/test-helpers.js

Issue 790683002: ServiceWorker cleanup: remove wait_for_activated(); just use wait_for_state() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/serviceworker/resources/test-helpers.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/test-helpers.js b/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
index c4b9d611044d7373dc4ba2ed0f1d43ea5964596d..dda9a69e3fc65fc2fd2442476ee491d531f4bbbf 100644
--- a/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
+++ b/LayoutTests/http/tests/serviceworker/resources/test-helpers.js
@@ -133,18 +133,6 @@ function wait_for_state(test, worker, state) {
}));
}
-function wait_for_activated(test, registration) {
- var expected_state = 'activated';
- if (registration.active)
- return wait_for_state(test, registration.active, expected_state);
- if (registration.waiting)
- return wait_for_state(test, registration.waiting, expected_state);
- if (registration.installing)
- return wait_for_state(test, registration.installing, expected_state);
- return Promise.reject(
- new Error('registration must have at least one version'));
-}
-
// Declare a test that runs entirely in the ServiceWorkerGlobalScope. The |url|
// is the service worker script URL. This function:
// - Instantiates a new test with the description specified in |description|.
« no previous file with comments | « LayoutTests/http/tests/serviceworker/ready.html ('k') | LayoutTests/http/tests/serviceworker/sync-xhr-doesnt-deadlock.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698