| Index: LayoutTests/http/tests/serviceworker/unregister-then-register-new-script.html
|
| diff --git a/LayoutTests/http/tests/serviceworker/unregister-then-register-new-script.html b/LayoutTests/http/tests/serviceworker/unregister-then-register-new-script.html
|
| index 26c438818e5c8e1207866d54628c62273b14823a..3380c3f3decb94e2f88ab1598f2b1bda9eb63286 100644
|
| --- a/LayoutTests/http/tests/serviceworker/unregister-then-register-new-script.html
|
| +++ b/LayoutTests/http/tests/serviceworker/unregister-then-register-new-script.html
|
| @@ -15,10 +15,7 @@ async_test(function(t) {
|
| service_worker_unregister_and_register(t, worker_url, scope)
|
| .then(function(r) {
|
| registration = r;
|
| - return wait_for_update(t, registration);
|
| - })
|
| - .then(function(worker) {
|
| - return wait_for_state(t, worker, 'activated');
|
| + return wait_for_state(t, r.installing, 'activated');
|
| })
|
| .then(function() {
|
| return with_iframe(scope);
|
| @@ -60,10 +57,7 @@ async_test(function(t) {
|
| service_worker_unregister_and_register(t, worker_url, scope)
|
| .then(function(r) {
|
| registration = r;
|
| - return wait_for_update(t, registration);
|
| - })
|
| - .then(function(worker) {
|
| - return wait_for_state(t, worker, 'activated');
|
| + return wait_for_state(t, r.installing, 'activated');
|
| })
|
| .then(function() {
|
| return with_iframe(scope);
|
| @@ -125,10 +119,7 @@ async_test(function(t) {
|
| service_worker_unregister_and_register(t, worker_url, scope)
|
| .then(function(r) {
|
| registration = r;
|
| - return wait_for_update(t, registration);
|
| - })
|
| - .then(function(worker) {
|
| - return wait_for_state(t, worker, 'activated');
|
| + return wait_for_state(t, r.installing, 'activated');
|
| })
|
| .then(function() {
|
| return with_iframe(scope);
|
| @@ -169,10 +160,7 @@ async_test(function(t) {
|
| service_worker_unregister_and_register(t, worker_url, scope)
|
| .then(function(r) {
|
| registration = r;
|
| - return wait_for_update(t, registration);
|
| - })
|
| - .then(function(worker) {
|
| - return wait_for_state(t, worker, 'activated');
|
| + return wait_for_state(t, r.installing, 'activated');
|
| })
|
| .then(function() {
|
| return with_iframe(scope);
|
| @@ -189,10 +177,7 @@ async_test(function(t) {
|
| })
|
| .then(function(r) {
|
| registration = r;
|
| - return wait_for_update(t, registration);
|
| - })
|
| - .then(function(worker) {
|
| - return wait_for_state(t, worker, 'redundant');
|
| + return wait_for_state(t, r.installing, 'redundant');
|
| })
|
| .then(function() {
|
| return with_iframe(scope);
|
|
|