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

Unified Diff: LayoutTests/http/tests/serviceworker/claim-not-using-registration.html

Issue 1168393002: Service Worker: Add ServiceWorkerContainer.getRegistrations() method. (Blink layout tests) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove iframe at the end of the test. Created 5 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/serviceworker/claim-not-using-registration.html
diff --git a/LayoutTests/http/tests/serviceworker/claim-not-using-registration.html b/LayoutTests/http/tests/serviceworker/claim-not-using-registration.html
index b94e70136ba3d3308c4274b90e0b41c92f04627c..135d73ae94aec0f57b4dfb9a960fc36b930427ed 100644
--- a/LayoutTests/http/tests/serviceworker/claim-not-using-registration.html
+++ b/LayoutTests/http/tests/serviceworker/claim-not-using-registration.html
@@ -78,7 +78,7 @@ promise_test(function(t) {
var scope = 'resources/blank.html?longer-matched';
var claim_scope = 'resources/blank.html?longer';
var claim_worker_url = 'resources/claim-worker.js';
- var installing_worker_url = 'resources/wait-forever-in-install-worker.js';
+ var installing_worker_url = 'resources/empty-worker.js';
var frame, claim_worker;
return with_iframe(scope)
.then(function(f) {
@@ -112,7 +112,10 @@ promise_test(function(t) {
'Frame should not be claimed when a longer-matched ' +
'registration exists');
frame.remove();
- return service_worker_unregister_and_done(t, claim_scope);
+ return service_worker_unregister(t, claim_scope);
+ })
+ .then(function() {
+ return service_worker_unregister_and_done(t, scope);
});
}, 'Test claim client when there\'s a longer-matched registration not ' +
'already used by the page');
« no previous file with comments | « no previous file | LayoutTests/http/tests/serviceworker/fetch-event-after-navigation-within-page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698