- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / management / no_permission / test.js
1 // Copyright 2013 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 var tests = [
6   function permissionWarnings() {
7     var manifest_str = "{ \"name\": \"Location!\", \"version\": \"1.0\", " +
8                        "\"permissions\": [\"location\"] }";
9
10     chrome.management.getPermissionWarningsByManifest(
11         manifest_str, chrome.test.callback(function(warnings) {
12       chrome.test.assertEq(1, warnings.length);
13       chrome.test.assertEq("Detect your physical location", warnings[0]);
14     }));
15   },
16 ];
17
18 chrome.test.runTests(tests);