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

Unified Diff: chrome/test/data/extensions/api_test/stubs/content_script.js

Issue 10025007: Convert tabs, windows, and extension APIs to feature system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: blah Created 8 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/stubs/content_script.js
diff --git a/chrome/test/data/extensions/api_test/stubs/content_script.js b/chrome/test/data/extensions/api_test/stubs/content_script.js
index 3eacb11029a6917f5e0fc72ac83c796ebc3e05e2..94de426343f6f076237efef739fafe906515244e 100644
--- a/chrome/test/data/extensions/api_test/stubs/content_script.js
+++ b/chrome/test/data/extensions/api_test/stubs/content_script.js
@@ -18,6 +18,10 @@ chrome.extension.sendRequest("getApi", function(apis) {
var privilegedPaths = [];
var unprivilegedPaths = [];
apis.forEach(function(module) {
+ // TODO(aa): Remove this whole test when all the APIs have been converted to
+ // the feature system.
+ if (module.uses_feature_system)
+ return;
var namespace = module.namespace;
["functions", "events"].forEach(function(section) {
@@ -86,7 +90,7 @@ function testPath(path, expectError) {
return false;
}
var str = err.toString();
- if (str.search("can only be used in extension processes.") != -1) {
+ if (str.search("cannot be used in this context.") != -1) {
return true;
} else {
logToConsoleAndStdout(

Powered by Google App Engine
This is Rietveld 408576698