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

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

Issue 15961006: Regenerate Extensions API bindings when optional permissions change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try againto fix android Created 7 years, 6 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
« no previous file with comments | « chrome/test/data/extensions/api_test/permissions/optional/background.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/permissions/optional_deny/background.js
diff --git a/chrome/test/data/extensions/api_test/permissions/optional_deny/background.js b/chrome/test/data/extensions/api_test/permissions/optional_deny/background.js
index 0c6d0e1685c6b790db5bef48e7a2ef66ed5bdb59..50579d5c9cb32e41ba2c36f73945de40b4667ab6 100644
--- a/chrome/test/data/extensions/api_test/permissions/optional_deny/background.js
+++ b/chrome/test/data/extensions/api_test/permissions/optional_deny/background.js
@@ -4,6 +4,7 @@
var assertFalse = chrome.test.assertFalse;
var assertTrue = chrome.test.assertTrue;
+var assertEq = chrome.test.assertEq;
var pass = chrome.test.callbackPass;
var NO_BOOKMARKS_PERMISSION =
@@ -48,14 +49,7 @@ chrome.test.getConfig(function(config) {
{permissions: ['bookmarks'], origins:['http://*.c.com/*']},
pass(function(result) { assertFalse(result); }));
- try {
- chrome.bookmarks.getTree(function() {
- chrome.test.fail("Should not have bookmarks API permission.");
- });
- } catch (e) {
- assertTrue(e.message.indexOf(NO_BOOKMARKS_PERMISSION) == 0);
- }
-
+ assertEq(undefined, chrome.bookmarks);
doReq('http://b.c.com/', pass(function(result) {
assertFalse(result);
}));
« no previous file with comments | « chrome/test/data/extensions/api_test/permissions/optional/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698