function testDisconnectByBackground() {
    chrome.test.listenOnce(chrome.runtime.onConnect,
        function(port) {
          assertIsPortFromInterstitial(port, 'disconnect by background');
          port.disconnect();
        });
    sendToInterstitialAndWait('testDisconnectByBackground');
  }
// Tests whether the onDisconnect event is fired in the interstitial page.
Tests whether the onDisconnect event is fired in the interstitial page.
Tests whether the onDisconnect event is fired in the interstitial page .
function testDisconnectByBackground() {
    chrome.test.listenOnce(chrome.runtime.onConnect,
        function(port) {
          assertIsPortFromInterstitial(port, 'disconnect by background');
          port.disconnect();
        });
    sendToInterstitialAndWait('testDisconnectByBackground');
  }
function testDisconnectByBackground ( ) { chrome . test . listenOnce ( chrome . runtime . onConnect , function ( port ) { assertIsPortFromInterstitial ( port , 'disconnect by background' ) ; port . disconnect ( ) ; } ) ; sendToInterstitialAndWait ( 'testDisconnectByBackground' ) ; }
Tests whether the onDisconnect event is fired in the interstitial page.
Tests whether the onDisconnect event is fired in the interstitial page .