Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / push_messaging / event_dispatch.js
blobac3b7ea368604032a23a455e5c26e0056ad66601
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.
5 function verifyDetails(details) {
6   chrome.test.assertEq(1, details.subchannelId);
7   chrome.test.assertEq('payload', details.payload);
10 function testEventDispatch() {
11   chrome.pushMessaging.onMessage.addListener(
12       chrome.test.callbackPass(verifyDetails));
15 chrome.test.runTests([testEventDispatch]);