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

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

Issue 164458: Land http://codereview.chromium.org/159067: (Closed)
Patch Set: undo docs Created 11 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/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>

Powered by Google App Engine
This is Rietveld 408576698