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

Unified Diff: LayoutTests/http/tests/serviceworker/controller-on-load.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/controller-on-load.html
diff --git a/LayoutTests/http/tests/serviceworker/controller-on-load.html b/LayoutTests/http/tests/serviceworker/controller-on-load.html
index 6c5bfd1145f7469389e858592a3283dd4f7a1a9a..5a6a447d29f97661486085fdddd06bec21010833 100644
--- a/LayoutTests/http/tests/serviceworker/controller-on-load.html
+++ b/LayoutTests/http/tests/serviceworker/controller-on-load.html
@@ -11,10 +11,7 @@ t.step(function() {
var scope = 'resources/blank.html';
service_worker_unregister_and_register(t, url, scope)
.then(t.step_func(function(registration) {
- return wait_for_update(t, registration);
- }))
- .then(t.step_func(function(worker) {
- return wait_for_state(t, worker, 'activated');
+ return wait_for_state(t, registration.installing, 'activated');
}))
.then(t.step_func(function() {
return with_iframe(scope)
« no previous file with comments | « LayoutTests/http/tests/serviceworker/client-focus.html ('k') | LayoutTests/http/tests/serviceworker/controller-on-reload.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698