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

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

Issue 258063008: Revert "Rename experimental.accessibility to accessibilityPrivate" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/permissions/enabled/background.js
diff --git a/chrome/test/data/extensions/api_test/permissions/enabled/background.js b/chrome/test/data/extensions/api_test/permissions/enabled/background.js
index 86a1fd9cb0f55ea564ffec6845c795358ece9288..b4dd2146b701ab3ee2e3774835d47618f4e3378c 100644
--- a/chrome/test/data/extensions/api_test/permissions/enabled/background.js
+++ b/chrome/test/data/extensions/api_test/permissions/enabled/background.js
@@ -8,6 +8,20 @@
var pass = chrome.test.callbackPass;
chrome.test.runTests([
+ function experimental() {
+ // Test that use of an experimental API works.
+ // If/when chrome.experimental.accessibility is moved out of
+ // experimental, this test needs to be updated.
+ chrome.tabs.getSelected(null, function(tab) {
+ try {
+ chrome.experimental.accessibility.getAlertsForTab(
+ tab.id, pass(function(alerts) {}));
+ } catch (e) {
+ chrome.test.fail();
+ }
+ });
+ },
+
function history() {
try {
var query = { 'text': '', 'maxResults': 1 };

Powered by Google App Engine
This is Rietveld 408576698