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|. |