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

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

Issue 1530002: Move history API out of experimental. Allow extensions to override history page. (Closed)
Patch Set: Rebase for commit. Created 10 years, 9 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.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();
}

Powered by Google App Engine
This is Rietveld 408576698