- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / platform_apps / launch_nothing / test.js
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 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();
16     }
17   ]);
18 });