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 };