function createTestTab(domain, callback) {
  var createdTabId = -1;
  var done = listenForever(
      chrome.tabs.onUpdated,
      function(tabId, changeInfo, tab) {
    if (tabId == createdTabId && changeInfo.status != 'loading') {
      callback(tab);
      done();
    }
  });

  chrome.tabs.create({url: testUrl(domain)}, pass(function(tab) {
    createdTabId = tab.id;
  }));
}
// Creates a new tab, navigated to the specified |domain|.
Creates a new tab, navigated to the specified |domain|.
Creates a new tab navigated to the specified |domain| .
function createTestTab(domain, callback) {
  var createdTabId = -1;
  var done = listenForever(
      chrome.tabs.onUpdated,
      function(tabId, changeInfo, tab) {
    if (tabId == createdTabId && changeInfo.status != 'loading') {
      callback(tab);
      done();
    }
  });
  chrome.tabs.create({url: testUrl(domain)}, pass(function(tab) {
    createdTabId = tab.id;
  }));
}
function createTestTab ( domain , callback ) { var createdTabId = - 1 ; var done = listenForever ( chrome . tabs . onUpdated , function ( tabId , changeInfo , tab ) { if ( tabId == createdTabId && changeInfo . status != 'loading' ) { callback ( tab ) ; done ( ) ; } } ) ; chrome . tabs . create ( { url : testUrl ( domain ) } , pass ( function ( tab ) { createdTabId = tab . id ; } ) ) ; }
Creates a new tab, navigated to the specified |domain|.
Creates a new tab navigated to the specified |domain| .