4 // Clicking the browser action sets the tab's title to its index.
5 chrome.browserAction.onClicked.addListener(function(tab) {
6 var script = "document.title = " + tab.index + ";";
7 chrome.tabs.executeScript(tab.id, {code: script}, function() {
8 chrome.test.notifyPass();