1 // Copyright (c) 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.
5 var callbackPass
= chrome
.test
.callbackPass
;
8 chrome
.permissions
.request({"origins": ["file:///*"]},
9 callbackPass(function(granted
) {
10 chrome
.test
.assertTrue(granted
);
11 chrome
.permissions
.getAll(callbackPass(function(permissions
) {
12 chrome
.test
.assertEq(["file:///*"], permissions
.origins
);
13 chrome
.test
.succeed();
18 chrome
.test
.runTests([test
]);