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

Unified Diff: LayoutTests/http/tests/serviceworker/unregister.html

Issue 466723002: ServiceWorker: Enable ServiceWorkerRegistration and update layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@updatefound
Patch Set: apply horo@'s patch (PatchSet 28 on https://codereview.chromium.org/468753003/) Created 6 years, 4 months 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/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();

Powered by Google App Engine
This is Rietveld 408576698