Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / extensions / platform_apps / launch_nothing / test.js
blob903fadd31476f06577252aa1215f64729933b570
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 chrome.app.runtime.onLaunched.addListener(function (launchData) {
6 // Check that the isKioskSession field is |false| and no id or items fields
7 // exist in the launch data.
8 chrome.test.runTests([
9 function testIntent() {
10 chrome.test.assertFalse(!launchData, "No launchData");
11 chrome.test.assertFalse(launchData.isKioskSession,
12 "launchData.isKioskSession incorrect");
13 chrome.test.assertTrue(!launchData.id, "launchData.id found");
14 chrome.test.assertTrue(!launchData.items, "launchData.items found");
15 chrome.test.succeed();
17 ]);
18 });