text: // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  // Use of this source code is governed by a BSD-style license that can be
  // found in the LICENSE file.
  
  chrome.browserAction.setBadgeBackgroundColor({color: [255, 0, 0, 255]});
  chrome.browserAction.setBadgeText({text: 'Text'});
  
  chrome.tabs.getSelected(null, function(tab) {
    chrome.browserAction.setPopup({tabId: tab.id, popup: 'newPopup.html'});
    chrome.browserAction.setTitle({tabId: tab.id, title: 'newTitle'});
    chrome.browserAction.setBadgeBackgroundColor({
      tabId: tab.id,
      color: [0, 0, 0, 0]
    });
    chrome.browserAction.setBadgeText({tabId: tab.id, text: 'newText'});
    chrome.test.notifyPass()
  });
  