function testSendMessage() {
  chrome.runtime.sendMessage(targetAppId, 'hello', null, function(response) {
    if (response == 'ack_message')
      chrome.test.succeed();
    else
      chrome.test.fail();
  });
}
// Send a message to the ephemeral app and expect a response.
Send a message to the ephemeral app and expect a response.
Send a message to the ephemeral app and expect a response .
function testSendMessage() {
  chrome.runtime.sendMessage(targetAppId, 'hello', null, function(response) {
    if (response == 'ack_message')
      chrome.test.succeed();
    else
      chrome.test.fail();
  });
}
function testSendMessage ( ) { chrome . runtime . sendMessage ( targetAppId , 'hello' , null , function ( response ) { if ( response == 'ack_message' ) chrome . test . succeed ( ) ; else chrome . test . fail ( ) ; } ) ; }
Send a message to the ephemeral app and expect a response.
Send a message to the ephemeral app and expect a response .