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

Unified Diff: chrome/test/data/push_messaging/push_test.js

Issue 778243002: Push API: Return cached registration if available. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@store2
Patch Set: Rebase 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: chrome/test/data/push_messaging/push_test.js
diff --git a/chrome/test/data/push_messaging/push_test.js b/chrome/test/data/push_messaging/push_test.js
index 70794dd09c230cfd6cead2a5cc9552cd311888f6..2998b199f4601ff712a093575cb8d444c917d8b0 100644
--- a/chrome/test/data/push_messaging/push_test.js
+++ b/chrome/test/data/push_messaging/push_test.js
@@ -61,6 +61,9 @@ function requestNotificationPermission() {
}
function registerServiceWorker() {
+ // The base dir used to resolve service_worker.js and the scope depends on
+ // whether this script is included from an html file in ./, subscope1/, or
+ // subscope2/.
navigator.serviceWorker.register('service_worker.js', {scope: './'}).then(
function(swRegistration) {
sendResultToTest('ok - service worker registered');

Powered by Google App Engine
This is Rietveld 408576698