Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: LayoutTests/http/tests/serviceworker/unregister-then-register-new-script.html

Issue 776373003: ServiceWorker cleanup: remove wait_for_update() in favor of r.installing in most tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « LayoutTests/http/tests/serviceworker/unregister-then-register.html ('k') | LayoutTests/http/tests/serviceworker/waiting.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698