1 // Copyright (c) 2011 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 // All of the calls to chrome.* functions should fail, with the exception of
6 // chrome.tabs.*, since this extension has requested no permissions.
11 var query = { 'text': '', 'maxResults': 1 };
12 chrome.history.search(query, function(results) {
16 chrome.test.succeed();
20 function bookmarks() {
22 chrome.bookmarks.get("1", function(results) {
26 chrome.test.succeed();
30 // Tabs functionality should be enabled even if the tabs permissions are not
34 chrome.tabs.create({'url': '1'}, function(tab) {
35 // Tabs strip sensitive data without permissions.
36 chrome.test.assertFalse('url' in tab);
37 chrome.test.succeed();
46 chrome.idle.queryState(60, function(state) {
50 chrome.test.succeed();