Index: chrome/test/data/extensions/api_test/permissions/enabled/background.html |
diff --git a/chrome/test/data/extensions/api_test/permissions/enabled/background.html b/chrome/test/data/extensions/api_test/permissions/enabled/background.html |
index 5ccd5e2f7d37381f82f449ea4c4a57106e8d884a..eb186e3795c6146827defa2fad8f33ac47b5f500 100755 |
--- a/chrome/test/data/extensions/api_test/permissions/enabled/background.html |
+++ b/chrome/test/data/extensions/api_test/permissions/enabled/background.html |
@@ -1,14 +1,28 @@ |
<script> |
-// All of these tests should pass, since this extension has requested all of the |
-// permissions. |
+// All of the calls to chrome.* functions should succeed, since this extension |
+// has requested all required permissions. |
var pass = chrome.test.callbackPass; |
chrome.test.runTests([ |
+ function experimental() { |
+ // Test that use of an experimental API works. |
+ // If/when chrome.experimental.processes is moved out of |
+ // experimental, this test needs to be updated. |
+ chrome.tabs.getSelected(null, function(tab) { |
+ try { |
+ chrome.experimental.processes.getProcessForTab( |
+ tab.id, pass(function(process) {})); |
+ } catch (e) { |
+ chrome.test.fail(); |
+ } |
+ }); |
+ }, |
+ |
function history() { |
try { |
var query = { 'text': '', 'maxResults': 1 }; |
- chrome.experimental.history.search(query, pass(function(results) {})); |
+ chrome.history.search(query, pass(function(results) {})); |
} catch (e) { |
chrome.test.fail(); |
} |