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.
6 function permissionWarnings() {
7 var manifest_str = "{ \"name\": \"Location!\", \"version\": \"1.0\", " +
8 "\"permissions\": [\"location\"] }";
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]);
18 chrome.test.runTests(tests);