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

Unified Diff: LayoutTests/http/tests/serviceworker/fetch-response-xhr.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/fetch-response-xhr.html
diff --git a/LayoutTests/http/tests/serviceworker/fetch-response-xhr.html b/LayoutTests/http/tests/serviceworker/fetch-response-xhr.html
index aaefc3ef865da7b924242d7f281052f51c4f2a14..ecec16e077daf458c5ce795415e38ecc8fb1153b 100644
--- a/LayoutTests/http/tests/serviceworker/fetch-response-xhr.html
+++ b/LayoutTests/http/tests/serviceworker/fetch-response-xhr.html
@@ -10,10 +10,7 @@ async_test(function(t) {
var host_info = get_host_info();
service_worker_unregister_and_register(t, SCRIPT, SCOPE)
.then(function(registration) {
- return wait_for_update(t, registration);
- })
- .then(function(sw) {
- return wait_for_state(t, sw, 'activated');
+ return wait_for_state(t, registration.installing, 'activated');
})
.then(function() { return with_iframe(SCOPE); })
.then(function(frame) {
« no previous file with comments | « LayoutTests/http/tests/serviceworker/fetch-request-xhr.html ('k') | LayoutTests/http/tests/serviceworker/indexeddb.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698