Index: LayoutTests/http/tests/serviceworker/unregister.html |
diff --git a/LayoutTests/http/tests/serviceworker/unregister.html b/LayoutTests/http/tests/serviceworker/unregister.html |
index cadeb871b9330dd61f3673b3afdd1c362ba9d328..077e932fa54b6b28b90e12e8705017f778496292 100644 |
--- a/LayoutTests/http/tests/serviceworker/unregister.html |
+++ b/LayoutTests/http/tests/serviceworker/unregister.html |
@@ -13,7 +13,7 @@ async_test(function(t) { |
t.done(); |
}) |
.catch(unreached_rejection(t)); |
-}, 'Unregistering out of origin'); |
+ }, 'Unregistering out of origin'); |
falken
2014/08/14 10:16:37
The indents in this file are all off, I think it p
nhiroki
2014/08/14 13:22:08
Done.
|
async_test(function(t) { |
navigator.serviceWorker.unregister('/nothing-here/') |
@@ -24,7 +24,7 @@ async_test(function(t) { |
t.done(); |
}) |
.catch(unreached_rejection(t)); |
-}, 'Unregistering with no existing registration'); |
+ }, 'Unregistering with no existing registration'); |
async_test(function(t) { |
var scope = '/register-then-unregister/'; |
@@ -39,11 +39,14 @@ async_test(function(t) { |
t.done(); |
}) |
.catch(unreached_rejection(t)); |
-}, 'Register then unregister'); |
+ }, 'Register then unregister'); |
async_test(function(t) { |
var state_promise; |
service_worker_unregister_and_register(t, 'resources/empty-worker.js') |
+ .then(function(registration) { |
+ return wait_for_update(t, registration); |
+ }) |
.then(function(sw) { |
state_promise = wait_for_state(t, sw, 'redundant'); |
return navigator.serviceWorker.unregister(); |