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

Unified Diff: chrome/test/data/extensions/platform_apps/browser_tag/main.js

Issue 11139005: Expose Browser Plugin API in <browser> Tag Shim. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 8 years, 2 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/renderer/resources/extensions/browser_tag.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/platform_apps/browser_tag/main.js
diff --git a/chrome/test/data/extensions/platform_apps/browser_tag/main.js b/chrome/test/data/extensions/platform_apps/browser_tag/main.js
index 213864bf5f2051af5b8fd415a3bfe23870575b2d..d766a32b40dc5704b83c890686d6195a2d71e048 100644
--- a/chrome/test/data/extensions/platform_apps/browser_tag/main.js
+++ b/chrome/test/data/extensions/platform_apps/browser_tag/main.js
@@ -48,6 +48,32 @@ onload = function() {
}, 0);
}, 0);
}, 0);
+ },
+
+ function browserTagApiMethodExistence() {
+ var browserTag = document.createElement('browser');
+ browserTag.setAttribute('src', 'data:text/html,browser tag check api');
+ var apiMethodsToCheck = [
+ 'addEventListener',
+ 'back',
+ 'forward',
+ 'getProcessId',
+ 'go',
+ 'reload',
+ 'removeEventListener',
+ 'stop',
+ 'terminate'
+ ];
+ document.body.appendChild(browserTag);
+
+ // Timeout is necessary to give the mutation observers a chance to fire.
+ setTimeout(function() {
+ for (var i = 0; i < apiMethodsToCheck.length; ++i) {
+ chrome.test.assertEq('function',
+ typeof browserTag[apiMethodsToCheck[i]]);
+ }
+ chrome.test.succeed();
+ }, 0);
}
]);
};
« no previous file with comments | « chrome/renderer/resources/extensions/browser_tag.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698