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

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

Issue 10826157: Check for warnings when loading extensions in browser tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ExtensionTerminalPrivateApiTest.TerminalTest Created 8 years, 4 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 dfdb0e7a5102518a2a186c302f419799deda7425..1b3f2ebc9e695ccdb2179b1c11d37915c43a22cc 100644
--- a/chrome/test/data/extensions/api_test/stubs/content_script.js
+++ b/chrome/test/data/extensions/api_test/stubs/content_script.js
@@ -24,6 +24,12 @@ chrome.extension.sendRequest("getApi", function(apis) {
if (typeof(module[section]) == "undefined")
return;
module[section].forEach(function(entry) {
+ // Ignore entries that are not applicable to the manifest that we're
+ // running under.
+ if (entry.maximumManifestVersion && entry.maximumManifestVersion < 2) {
+ return;
+ }
+
var path = namespace + "." + entry.name;
if (module.unprivileged || entry.unprivileged) {
unprivilegedPaths.push(path);
« no previous file with comments | « chrome/test/data/extensions/api_test/stubs/background.js ('k') | chrome/test/data/extensions/api_test/stubs/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698