| Index: LayoutTests/http/tests/serviceworker/request-end-to-end.html
|
| diff --git a/LayoutTests/http/tests/serviceworker/request-end-to-end.html b/LayoutTests/http/tests/serviceworker/request-end-to-end.html
|
| index 8e459cf1d14f4520620bd0b656977727a108925d..06fb8b5221f88dc1d8c448e06782c518a601b29e 100644
|
| --- a/LayoutTests/http/tests/serviceworker/request-end-to-end.html
|
| +++ b/LayoutTests/http/tests/serviceworker/request-end-to-end.html
|
| @@ -10,10 +10,7 @@ t.step(function() {
|
| var scope = 'resources/blank.html';
|
|
|
| service_worker_unregister_and_register(t, url, scope)
|
| - .then(t.step_func(function(registration) {
|
| - return wait_for_update(t, registration);
|
| - }))
|
| - .then(t.step_func(onUpdateFound))
|
| + .then(onRegister)
|
| .catch(unreached_rejection(t));
|
|
|
| function sendMessagePort(worker) {
|
| @@ -22,7 +19,8 @@ t.step(function() {
|
| return messageChannel.port1;
|
| }
|
|
|
| - function onUpdateFound(sw) {
|
| + function onRegister(registration) {
|
| + var sw = registration.installing;
|
| var port = sendMessagePort(sw);
|
| port.addEventListener('message', t.step_func(function(event) {
|
| onMessage(event);
|
|
|