Index: LayoutTests/http/tests/serviceworker/postmessage.html |
diff --git a/LayoutTests/http/tests/serviceworker/postmessage.html b/LayoutTests/http/tests/serviceworker/postmessage.html |
index 951bd8d00692754ee2b22ffa61e8ebed5b4d7b81..a820ca96c1f4deef21bbe6f7538d0c4a361e997e 100644 |
--- a/LayoutTests/http/tests/serviceworker/postmessage.html |
+++ b/LayoutTests/http/tests/serviceworker/postmessage.html |
@@ -8,7 +8,7 @@ var test = async_test('postMessage to a ServiceWorker (and back via MessagePort) |
test.step(function() { |
var scope = 'resources/blank.html'; |
service_worker_unregister_and_register( |
- test, 'resources/postmessage-worker.js', scope, onRegister); |
+ test, 'resources/postmessage-worker.js', scope).then(test.step_func(onRegister)); |
function onRegister(worker) { |
var messageChannel = new MessageChannel(); |