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.
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();