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

Unified Diff: chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html

Issue 224012: Renames getTabContentses to getExtensionTabs (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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/extension_process_bindings.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/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html
===================================================================
--- chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html (revision 28552)
+++ chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html (working copy)
@@ -39,12 +39,16 @@
}
// This function is called from the C++ browser test. It tests the
-// getTabContentses function to make sure it can be used as an extension API.
-// This will pass if getTabContentses returns tabcontent view.
-function testgetTabContentsesAPI() {
- var views = chrome.extension.getTabContentses();
+// getExtensionTabs function to make sure it can be used as an extension API.
+// This will pass if getExtensionTabs returns tabcontent view.
+function testgetExtensionTabsAPI() {
+ var views = chrome.extension.getExtensionTabs();
+ // getTabContentses is here for backwards compatibility
+ var views2 = chrome.extension.getTabContentses();
window.domAutomationController.send(views.length == 1 &&
- views[0].isTabContents == 1);
+ views[0].isTabContents == 1 &&
+ views2.length = 1 &&
+ views2[0].isTabContents == 1);
}
</script>
« no previous file with comments | « chrome/renderer/resources/extension_process_bindings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698