OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script> |
| 4 // Test that we can change various properties of the browser action. |
| 5 // The C++ verifies. |
| 6 chrome.tabs.getSelected(null, function(tab) { |
| 7 chrome.pageAction.show(tab.id); |
| 8 chrome.pageAction.setTitle({title: "Modified", tabId: tab.id}); |
| 9 chrome.pageAction.setBadgeText({text: "badge", tabId: tab.id}); |
| 10 chrome.pageAction.setBadgeBackgroundColor( |
| 11 {color: [255,255,255,255], tabId: tab.id}); |
| 12 |
| 13 chrome.test.notifyPass(); |
| 14 }); |
| 15 </script> |
| 16 </head> |
| 17 </html> |
OLD | NEW |