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

Unified Diff: LayoutTests/http/tests/serviceworker/chromium/postmessage-after-terminate.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/chromium/postmessage-after-terminate.html
diff --git a/LayoutTests/http/tests/serviceworker/chromium/postmessage-after-terminate.html b/LayoutTests/http/tests/serviceworker/chromium/postmessage-after-terminate.html
index f3aea71aae68b27d3096fb92b26b170c4eeef95f..b1d4aaa979beb77a2f52ee8d8ede0983fbaf1bf2 100644
--- a/LayoutTests/http/tests/serviceworker/chromium/postmessage-after-terminate.html
+++ b/LayoutTests/http/tests/serviceworker/chromium/postmessage-after-terminate.html
@@ -21,10 +21,7 @@ promise_test(function(test) {
var sw;
return service_worker_unregister_and_register(test, worker, scope)
.then(function(registration) {
- return wait_for_update(test, registration);
- })
- .then(function(worker) {
- sw = worker;
+ sw = registration.installing;
return send_ping(sw);
})
.then(function(reply) {

Powered by Google App Engine
This is Rietveld 408576698