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

Unified Diff: LayoutTests/http/tests/serviceworker/waiting.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
« no previous file with comments | « LayoutTests/http/tests/serviceworker/unregister-then-register-new-script.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/waiting.html
diff --git a/LayoutTests/http/tests/serviceworker/waiting.html b/LayoutTests/http/tests/serviceworker/waiting.html
index e326f89763aadb6c2ae144e38b854cf15d6c8554..4ece274a3e5f2d9693a37a46a5b8097f20d1c6b5 100644
--- a/LayoutTests/http/tests/serviceworker/waiting.html
+++ b/LayoutTests/http/tests/serviceworker/waiting.html
@@ -21,10 +21,7 @@ async_test(function(t) {
})
.then(function(r) {
registration = r;
- return wait_for_update(t, registration);
- })
- .then(function(serviceWorker) {
- return wait_for_state(t, serviceWorker, 'installed');
+ return wait_for_state(t, r.installing, 'installed');
}, unreached_rejection(t, 'Registration should not fail'))
.then(function() {
var controller = frame.contentWindow.navigator.serviceWorker.controller;
« no previous file with comments | « LayoutTests/http/tests/serviceworker/unregister-then-register-new-script.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698