Index: LayoutTests/http/tests/serviceworker/chromium/postmessage-after-terminate.html |
diff --git a/LayoutTests/http/tests/serviceworker/chromium/postmessage-after-terminate.html b/LayoutTests/http/tests/serviceworker/chromium/postmessage-after-terminate.html |
index 2b52ad94f7f977a3d432500791b8746c50a12827..60b65c52bacd3640a096c04379497ba42e4aa231 100644 |
--- a/LayoutTests/http/tests/serviceworker/chromium/postmessage-after-terminate.html |
+++ b/LayoutTests/http/tests/serviceworker/chromium/postmessage-after-terminate.html |
@@ -58,7 +58,7 @@ async_test(function(t) { |
t, worker_script, scope) |
.then(function(r) { |
registration = r; |
- return wait_for_activated(t, registration); |
+ return wait_for_state(t, r.installing, 'activated'); |
}) |
.then(function() { |
worker = registration.active; |
@@ -112,7 +112,7 @@ async_test(function(t) { |
t, worker_script, scope) |
.then(function(r) { |
registration = r; |
- return wait_for_activated(t, registration); |
+ return wait_for_state(t, r.installing, 'activated'); |
}) |
.then(function() { |
worker = registration.active; |