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

Unified Diff: LayoutTests/http/tests/serviceworker/active.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/active.html
diff --git a/LayoutTests/http/tests/serviceworker/active.html b/LayoutTests/http/tests/serviceworker/active.html
index e2d5bb037267d90583586b2578b773635c258e36..90bae187a4ba494bf2cf0b367f0755b2606d5e36 100644
--- a/LayoutTests/http/tests/serviceworker/active.html
+++ b/LayoutTests/http/tests/serviceworker/active.html
@@ -21,10 +21,7 @@ async_test(function(t) {
}))
.then(step(function(r) {
registration = r;
- return wait_for_update(t, registration);
- }))
- .then(step(function(serviceWorker) {
- return wait_for_state(t, serviceWorker, 'activating');
+ return wait_for_state(t, r.installing, 'activating');
}))
.then(step(function() {
var container = frame.contentWindow.navigator.serviceWorker;

Powered by Google App Engine
This is Rietveld 408576698