- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / uitest / rename_tab / bg.html
1 <html>
2 <script>
3
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>