Index: LayoutTests/http/tests/serviceworker/registration-events.html |
diff --git a/LayoutTests/http/tests/serviceworker/registration-events.html b/LayoutTests/http/tests/serviceworker/registration-events.html |
index 67ce83fff4015fa991825ef2390c9d7c29094c21..1a3377627e6d5980ddde1ef4826007c2a4997695 100644 |
--- a/LayoutTests/http/tests/serviceworker/registration-events.html |
+++ b/LayoutTests/http/tests/serviceworker/registration-events.html |
@@ -10,9 +10,8 @@ t.step(function() { |
service_worker_unregister_and_register( |
t, 'resources/events-worker.js', scope) |
.then(t.step_func(function(registration) { |
- return wait_for_update(t, registration); |
+ onRegister(registration.installing); |
})) |
- .then(t.step_func(onRegister)) |
.catch(unreached_rejection(t)); |
function sendMessagePort(worker, from) { |