summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/extensions/good
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 07:43:17 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 07:43:17 +0000
commit1d1dc679eacebb3ce4c2596d9cbf835c62abc183 (patch)
tree0cdc3c29ab0a25657047a248c5cb2390824173c6 /chrome/test/data/extensions/good
parent84f037ec653b4a3a7fa87652eec3dd796541341b (diff)
downloadchromium_src-1d1dc679eacebb3ce4c2596d9cbf835c62abc183.zip
chromium_src-1d1dc679eacebb3ce4c2596d9cbf835c62abc183.tar.gz
chromium_src-1d1dc679eacebb3ce4c2596d9cbf835c62abc183.tar.bz2
Rename getTabContentses to getExtensionTabs.
The old name is also aliased for backwards compat. This lands: http://codereview.chromium.org/224012 BUG=21433 Review URL: http://codereview.chromium.org/339041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30326 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/extensions/good')
-rw-r--r--chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html14
1 files changed, 9 insertions, 5 deletions
diff --git a/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html b/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html
index 8fb82aa..da7cdae 100644
--- a/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html
+++ b/chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html
@@ -39,12 +39,16 @@ function testgetBackgroundPageAPI() {
}
// 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>