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

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

Issue 2436393002: Disallow repeated PushManager.subscribes with different sender ids (Closed)
Patch Set: Make error message more informative Created 4 years, 1 month 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 d4790fa35890c0c0f6dee09caa5e61f95b0e30b2..6dad4b3f1f3cd4934130479af904a04618559567 100644
--- a/chrome/test/data/push_messaging/push_test.js
+++ b/chrome/test/data/push_messaging/push_test.js
@@ -144,10 +144,10 @@ function workerSubscribePushNoKey() {
{command: 'workerSubscribeNoKey'});
}
-function workerSubscribePushWithNumericKey() {
- // Send the message to the worker for it to subscribe
+function workerSubscribePushWithNumericKey(numericKey = '1234567890') {
+ // Send the message to the worker for it to subscribe with the given key
navigator.serviceWorker.controller.postMessage(
- {command: 'workerSubscribeWithNumericKey'});
+ {command: 'workerSubscribeWithNumericKey', key: numericKey});
}
function GetP256dh() {
« no previous file with comments | « chrome/browser/push_messaging/push_messaging_browsertest.cc ('k') | chrome/test/data/push_messaging/service_worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698