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

Unified Diff: LayoutTests/http/tests/serviceworker/multiple-register.html

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/multiple-register.html
diff --git a/LayoutTests/http/tests/serviceworker/multiple-register.html b/LayoutTests/http/tests/serviceworker/multiple-register.html
index 9851bcef131690b19bfa7b6fd5aee179e2b55997..014cb7a6765ced2dbb3cbcf7a2e8cca24dacaa04 100644
--- a/LayoutTests/http/tests/serviceworker/multiple-register.html
+++ b/LayoutTests/http/tests/serviceworker/multiple-register.html
@@ -12,7 +12,7 @@ async_test(function(t) {
service_worker_unregister_and_register(t, worker_url, scope)
.then(function(r) {
registration = r;
- return wait_for_activated(t, registration);
+ return wait_for_state(t, r.installing, 'activated');
})
.then(function() {
return navigator.serviceWorker.register(worker_url, { scope: scope });
@@ -38,7 +38,7 @@ async_test(function(t) {
service_worker_unregister_and_register(t, worker_url, scope)
.then(function(r) {
registration = r;
- return wait_for_activated(t, registration);
+ return wait_for_state(t, r.installing, 'activated');
})
.then(function() { return with_iframe('out-of-scope'); })
.then(function(f) {
« no previous file with comments | « LayoutTests/http/tests/serviceworker/fetch-request-html-imports.html ('k') | LayoutTests/http/tests/serviceworker/ready.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698