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

Unified Diff: LayoutTests/http/tests/serviceworker/registration-events.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/registration-events.html
diff --git a/LayoutTests/http/tests/serviceworker/registration-events.html b/LayoutTests/http/tests/serviceworker/registration-events.html
index 67ce83fff4015fa991825ef2390c9d7c29094c21..1a3377627e6d5980ddde1ef4826007c2a4997695 100644
--- a/LayoutTests/http/tests/serviceworker/registration-events.html
+++ b/LayoutTests/http/tests/serviceworker/registration-events.html
@@ -10,9 +10,8 @@ t.step(function() {
service_worker_unregister_and_register(
t, 'resources/events-worker.js', scope)
.then(t.step_func(function(registration) {
- return wait_for_update(t, registration);
+ onRegister(registration.installing);
}))
- .then(t.step_func(onRegister))
.catch(unreached_rejection(t));
function sendMessagePort(worker, from) {

Powered by Google App Engine
This is Rietveld 408576698