OLD | NEW |
| (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]); | |
OLD | NEW |