function testDisconnectByInterstitial() {
    chrome.test.listenOnce(chrome.runtime.onConnect,
        function(port) {
          assertIsPortFromInterstitial(port, 'disconnect by interstitial');
          chrome.test.listenOnce(port.onDisconnect, function() {
            chrome.test.assertNoLastError();
          });
        });
    sendToInterstitialAndWait('testDisconnectByInterstitial');
  }
// the content script in the interstitial page.
the content script in the interstitial page.
the content script in the interstitial page .
function testDisconnectByInterstitial() {
    chrome.test.listenOnce(chrome.runtime.onConnect,
        function(port) {
          assertIsPortFromInterstitial(port, 'disconnect by interstitial');
          chrome.test.listenOnce(port.onDisconnect, function() {
            chrome.test.assertNoLastError();
          });
        });
    sendToInterstitialAndWait('testDisconnectByInterstitial');
  }
function testDisconnectByInterstitial ( ) { chrome . test . listenOnce ( chrome . runtime . onConnect , function ( port ) { assertIsPortFromInterstitial ( port , 'disconnect by interstitial' ) ; chrome . test . listenOnce ( port . onDisconnect , function ( ) { chrome . test . assertNoLastError ( ) ; } ) ; } ) ; sendToInterstitialAndWait ( 'testDisconnectByInterstitial' ) ; }
the content script in the interstitial page.
the content script in the interstitial page .