| Index: chrome/test/data/extensions/good/Extensions/behllobkkfkfnphdnhnkndlbkcpglgmj/1.0.0.0/toolstrip1.html
|
| 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 5d8d6731a2f5b84f363c3548c316df9e5a08e71a..8fb82aa1143bd6de51fc6f9396604e8189174020 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
|
| @@ -1,4 +1,5 @@
|
| <script>
|
| +var isToolstrip = 1;
|
| // This function is called from the C++ browser test. It does a basic sanity
|
| // test that we can call extension APIs.
|
| function testTabsAPI() {
|
| @@ -18,6 +19,34 @@ function testTabsLanguageAPI() {
|
| });
|
| }
|
|
|
| +// This function is called from the C++ browser test. It tests the getToolstrips
|
| +// function to make sure it can be used as an extension API. This will pass if
|
| +// getToolstrips returns all toolstrip views.
|
| +function testgetToolstripsAPI() {
|
| + var views = chrome.extension.getToolstrips();
|
| + window.domAutomationController.send(views.length == 2 &&
|
| + views[0].isToolstrip == 1 &&
|
| + views[1].isToolstrip == 1);
|
| +}
|
| +
|
| +// This function is called from the C++ browser test. It tests the
|
| +// getBackgroundPage function to make sure it can be used as an extension API.
|
| +// This will pass if getBackgroundPage returns background page view.
|
| +function testgetBackgroundPageAPI() {
|
| + var view = chrome.extension.getBackgroundPage();
|
| + window.domAutomationController.send(view != null &&
|
| + view.isBackgroundPage == 1);
|
| +}
|
| +
|
| +// 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();
|
| + window.domAutomationController.send(views.length == 1 &&
|
| + views[0].isTabContents == 1);
|
| +}
|
| +
|
| </script>
|
| <select>
|
| <option>one</option>
|
|
|