Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: chrome/test/data/extensions/api_test/permissions/enabled/background.js

Issue 106973003: Rename experimental.accessibility to accessibilityPrivate (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix failing tests Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // All of the calls to chrome.* functions should succeed, since this extension 5 // All of the calls to chrome.* functions should succeed, since this extension
6 // has requested all required permissions. 6 // has requested all required permissions.
7 7
8 var pass = chrome.test.callbackPass; 8 var pass = chrome.test.callbackPass;
9 9
10 chrome.test.runTests([ 10 chrome.test.runTests([
11 function experimental() {
not at google - send to devlin 2014/04/01 14:31:57 This is fine. You could try using experimental.dev
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) {
16 try {
17 chrome.experimental.accessibility.getAlertsForTab(
18 tab.id, pass(function(alerts) {}));
19 } catch (e) {
20 chrome.test.fail();
21 }
22 });
23 },
24
25 function history() { 11 function history() {
26 try { 12 try {
27 var query = { 'text': '', 'maxResults': 1 }; 13 var query = { 'text': '', 'maxResults': 1 };
28 chrome.history.search(query, pass(function(results) {})); 14 chrome.history.search(query, pass(function(results) {}));
29 } catch (e) { 15 } catch (e) {
30 chrome.test.fail(); 16 chrome.test.fail();
31 } 17 }
32 }, 18 },
33 19
34 function bookmarks() { 20 function bookmarks() {
35 try { 21 try {
36 chrome.bookmarks.get("1", pass(function(results) {})); 22 chrome.bookmarks.get("1", pass(function(results) {}));
37 } catch (e) { 23 } catch (e) {
38 chrome.test.fail(); 24 chrome.test.fail();
39 } 25 }
40 }, 26 },
41 27
42 function tabs() { 28 function tabs() {
43 try { 29 try {
44 chrome.tabs.getSelected(null, pass(function(results) {})); 30 chrome.tabs.getSelected(null, pass(function(results) {}));
45 } catch (e) { 31 } catch (e) {
46 chrome.test.fail(); 32 chrome.test.fail();
47 } 33 }
48 } 34 }
49 ]); 35 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698