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

Unified Diff: LayoutTests/http/tests/serviceworker/serviceworkerobject-terminate.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/serviceworkerobject-terminate.html
diff --git a/LayoutTests/http/tests/serviceworker/serviceworkerobject-terminate.html b/LayoutTests/http/tests/serviceworker/serviceworkerobject-terminate.html
index f134814701252766873de0aeb321814cb354408c..8e1b1f13705f66f4c7179c05183b1e00a6a9487a 100644
--- a/LayoutTests/http/tests/serviceworker/serviceworkerobject-terminate.html
+++ b/LayoutTests/http/tests/serviceworker/serviceworkerobject-terminate.html
@@ -10,11 +10,8 @@ async_test(function(t) {
var scope = 'resources/blank.html';
service_worker_unregister_and_register(t, worker, scope)
.then(t.step_func(function(registration) {
- return wait_for_update(t, registration);
- }))
- .then(t.step_func(function(worker) {
assert_throws({name: 'InvalidAccessError'}, function() {
- worker.terminate();
+ registration.installing.terminate();
});
return service_worker_unregister_and_done(t, scope);
}))

Powered by Google App Engine
This is Rietveld 408576698