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

Unified Diff: LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/scope.js

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/ServiceWorkerGlobalScope/resources/scope.js
diff --git a/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/scope.js b/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/scope.js
index 92d48248a159e71ca9a670431d96e7d509fd626d..499a8b8837fbf10447a43b7ca382a8a61014adc4 100644
--- a/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/scope.js
+++ b/LayoutTests/http/tests/serviceworker/ServiceWorkerGlobalScope/resources/scope.js
@@ -14,9 +14,7 @@ function scope_test(t, worker_url, scope) {
})
.then(function(r) {
registration = r;
- return wait_for_update(t, registration);
- })
- .then(function(worker) {
+ var worker = r.installing;
return new Promise(function(resolve) {
var messageChannel = new MessageChannel();
messageChannel.port1.onmessage = resolve;

Powered by Google App Engine
This is Rietveld 408576698