Chromium Code Reviews| Index: LayoutTests/http/tests/serviceworker/registration-end-to-end.html |
| diff --git a/LayoutTests/http/tests/serviceworker/registration-end-to-end.html b/LayoutTests/http/tests/serviceworker/registration-end-to-end.html |
| index 13c49c7d82988088a3faa64d638f569490344a24..aa2a89d6690de5ea72fbb9c143066ecda334189e 100644 |
| --- a/LayoutTests/http/tests/serviceworker/registration-end-to-end.html |
| +++ b/LayoutTests/http/tests/serviceworker/registration-end-to-end.html |
| @@ -22,7 +22,12 @@ t.step(function() { |
| }; |
| service_worker_unregister_and_register( |
| - t, 'resources/end-to-end-worker.js', scope).then(t.step_func(onRegister)); |
| + t, 'resources/end-to-end-worker.js', scope) |
| + .then(t.step_func(function(registration) { |
|
falken
2014/08/14 14:23:15
t.step_func can be removed from a promise chain
nhiroki
2014/08/14 16:37:54
Done.
|
| + return wait_for_update(t, registration); |
| + })) |
| + .then(t.step_func(onRegister)) |
| + .catch(unreached_rejection(t)); |
| function sendMessagePort(worker, from) { |
| var messageChannel = new MessageChannel(); |