| Index: chrome/test/data/extensions/api_test/page_action/old_api/set_icon_index.js
|
| diff --git a/chrome/test/data/extensions/api_test/page_action/old_api/page.js b/chrome/test/data/extensions/api_test/page_action/old_api/set_icon_index.js
|
| similarity index 70%
|
| copy from chrome/test/data/extensions/api_test/page_action/old_api/page.js
|
| copy to chrome/test/data/extensions/api_test/page_action/old_api/set_icon_index.js
|
| index de7b8ae5f692adf74d6f691dbb50b6c4c974e594..01e0a25df7a97b3d12661279cab028e8dfb65e35 100644
|
| --- a/chrome/test/data/extensions/api_test/page_action/old_api/page.js
|
| +++ b/chrome/test/data/extensions/api_test/page_action/old_api/set_icon_index.js
|
| @@ -4,6 +4,7 @@
|
|
|
| // Enable the page action on this tab.
|
| chrome.tabs.getSelected(null, function(tab) {
|
| - chrome.pageActions.enableForTab("action", {"tabId":tab.id, "url":tab.url});
|
| - chrome.test.notifyPass();
|
| + chrome.pageAction.setIcon({tabId: tab.id, iconIndex: 1}, function(){
|
| + chrome.test.notifyPass();
|
| + });
|
| });
|
|
|