function testDisconnectByClosingInterstitial() {
    chrome.test.listenOnce(testPort.onDisconnect, function() {
      chrome.test.assertNoLastError();
      testPort = null;
    });
    // Close the interstitial. Should trigger onDisconnect.
    chrome.tabs.update(httpsTabId, {
      url: 'about:blank'
    });
  }
// Closing the interstitial should cause the ports to disconnect.
Closing the interstitial should cause the ports to disconnect.
Closing the interstitial should cause the ports to disconnect .
function testDisconnectByClosingInterstitial() {
    chrome.test.listenOnce(testPort.onDisconnect, function() {
      chrome.test.assertNoLastError();
      testPort = null;
    });
    chrome.tabs.update(httpsTabId, {
      url: 'about:blank'
    });
  }
function testDisconnectByClosingInterstitial ( ) { chrome . test . listenOnce ( testPort . onDisconnect , function ( ) { chrome . test . assertNoLastError ( ) ; testPort = null ; } ) ; chrome . tabs . update ( httpsTabId , { url : 'about:blank' } ) ; }
Closing the interstitial should cause the ports to disconnect.
Closing the interstitial should cause the ports to disconnect .
// Close the interstitial. Should trigger onDisconnect.