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

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

Issue 2411733002: Check the format of an applicationServerKey when used to register a push subscription. (Closed)
Patch Set: More formatting Created 4 years, 2 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: 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 9a1336067db956d91f95e0205b977dca81d08427..73907ba5f1124e4b56e410bb4b720a00c39f1463 100644
--- a/chrome/test/data/push_messaging/push_test.js
+++ b/chrome/test/data/push_messaging/push_test.js
@@ -112,19 +112,6 @@ function documentSubscribePush() {
}).catch(sendErrorToTest);
}
-function documentSubscribePushBadKey() {
- navigator.serviceWorker.ready.then(function(swRegistration) {
- var invalidApplicationServerKey = new Uint8Array(300);
- invalidApplicationServerKey.fill('0x05', 1, 300);
- pushSubscriptionOptions.applicationServerKey =
- invalidApplicationServerKey.buffer;
- return swRegistration.pushManager.subscribe(pushSubscriptionOptions)
- .then(function(subscription) {
- sendResultToTest(subscription.endpoint);
- });
- }).catch(sendErrorToTest);
-}
-
function workerSubscribePush() {
// Send the message to the worker for it to subscribe
navigator.serviceWorker.controller.postMessage({command: 'workerSubscribe'});

Powered by Google App Engine
This is Rietveld 408576698