Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / test / data / extensions / uitest / rename_tab / bg.html
blobbb1098153438494525f0017bd0c38f75e9bfc8a1
1 <html>
2 <script>
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();
9 });
10 });
11 </script>
12 </html>