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 succeed, since this extension
6 // has requested all required permissions.
8 var pass = chrome.test.callbackPass;
10 chrome.test.runTests([
11 function experimental() {
12 // Test that use of an experimental API works.
13 // If/when chrome.experimental.accessibility is moved out of
14 // experimental, this test needs to be updated.
15 chrome.tabs.getSelected(null, function(tab) {
17 chrome.experimental.accessibility.getAlertsForTab(
18 tab.id, pass(function(alerts) {}));
27 var query = { 'text': '', 'maxResults': 1 };
28 chrome.history.search(query, pass(function(results) {}));
34 function bookmarks() {
36 chrome.bookmarks.get("1", pass(function(results) {}));
44 chrome.tabs.getSelected(null, pass(function(results) {}));