Index: LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/scope.js |
diff --git a/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/scope.js b/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/scope.js |
index 92d48248a159e71ca9a670431d96e7d509fd626d..499a8b8837fbf10447a43b7ca382a8a61014adc4 100644 |
--- a/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/scope.js |
+++ b/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/scope.js |
@@ -14,9 +14,7 @@ function scope_test(t, worker_url, scope) { |
}) |
.then(function(r) { |
registration = r; |
- return wait_for_update(t, registration); |
- }) |
- .then(function(worker) { |
+ var worker = r.installing; |
return new Promise(function(resolve) { |
var messageChannel = new MessageChannel(); |
messageChannel.port1.onmessage = resolve; |