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

Unified Diff: LayoutTests/http/tests/serviceworker/state.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/state.html
diff --git a/LayoutTests/http/tests/serviceworker/state.html b/LayoutTests/http/tests/serviceworker/state.html
index a94f32034560fe77528ca06bbf6e4d615d9949a3..ddc08d563c6c7fb6de92107a256c784b504b529a 100644
--- a/LayoutTests/http/tests/serviceworker/state.html
+++ b/LayoutTests/http/tests/serviceworker/state.html
@@ -12,9 +12,7 @@
service_worker_unregister_and_register(
t, 'resources/empty-worker.js', scope)
.then(t.step_func(function(registration) {
- return wait_for_update(t, registration);
- }))
- .then(t.step_func(function(sw) {
+ var sw = registration.installing;
sw.addEventListener('statechange', t.step_func(onStateChange(sw)));
assert_equals(sw.state, 'installing',
'the service worker should be in "installing" state.');

Powered by Google App Engine
This is Rietveld 408576698