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

Side by Side Diff: chrome/test/data/extensions/api_test/push_messaging/get_channel_id.js

Issue 1018643003: Removing chrome.pushMessaging API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates to documentation per kalman's comments Created 5 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 function channelIdCallback(message) {
6 chrome.test.assertEq(message.channelId, "");
7 }
8
9 function testGetChannelId() {
10 // the api call should fail because no user is signed in
11 chrome.pushMessaging.getChannelId(
12 false, chrome.test.callbackFail("The user is not signed in.",
13 channelIdCallback));
14 }
15
16 chrome.test.runTests([testGetChannelId]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698