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

Unified Diff: chrome/test/data/extensions/api_test/page_action/update.html

Issue 269079: Implement new page action API. (Closed)
Patch Set: compile fixes 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
Index: chrome/test/data/extensions/api_test/page_action/update.html
diff --git a/chrome/test/data/extensions/api_test/page_action/update.html b/chrome/test/data/extensions/api_test/page_action/update.html
new file mode 100755
index 0000000000000000000000000000000000000000..ba38b7fda5bb60f912e6b6cef1eb7816f1de1ff1
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/page_action/update.html
@@ -0,0 +1,17 @@
+<html>
+<head>
+<script>
+ // Test that we can change various properties of the browser action.
+ // The C++ verifies.
+ chrome.tabs.getSelected(null, function(tab) {
+ chrome.pageAction.show(tab.id);
+ chrome.pageAction.setTitle({title: "Modified", tabId: tab.id});
+ chrome.pageAction.setBadgeText({text: "badge", tabId: tab.id});
+ chrome.pageAction.setBadgeBackgroundColor(
+ {color: [255,255,255,255], tabId: tab.id});
+
+ chrome.test.notifyPass();
+ });
+</script>
+</head>
+</html>

Powered by Google App Engine
This is Rietveld 408576698