function testFocusTracksEmbedderRunNextStep() {
  g_webview.contentWindow.postMessage(
      JSON.stringify(['request-waitForBlurAfterFocus']), '*');

  window.addEventListener('message', function(e) {
    var data = JSON.parse(e.data);
    LOG('send window.message, data: ' + data);
    if (data[0] == 'response-seenBlurAfterFocus')
      chrome.test.sendMessage('TEST_STEP_PASSED');
  });
}
// See WebViewTest.Focus_FocusTracksEmbedder() to see how this is invoked.
See WebViewTest.Focus_FocusTracksEmbedder() to see how this is invoked.
See WebViewTest . Focus_FocusTracksEmbedder () to see how this is invoked .
function testFocusTracksEmbedderRunNextStep() {
  g_webview.contentWindow.postMessage(
      JSON.stringify(['request-waitForBlurAfterFocus']), '*');
  window.addEventListener('message', function(e) {
    var data = JSON.parse(e.data);
    LOG('send window.message, data: ' + data);
    if (data[0] == 'response-seenBlurAfterFocus')
      chrome.test.sendMessage('TEST_STEP_PASSED');
  });
}
function testFocusTracksEmbedderRunNextStep ( ) { g_webview . contentWindow . postMessage ( JSON . stringify ( [ 'request-waitForBlurAfterFocus' ] ) , '*' ) ; window . addEventListener ( 'message' , function ( e ) { var data = JSON . parse ( e . data ) ; LOG ( 'send window.message, data: ' + data ) ; if ( data [ 0 ] == 'response-seenBlurAfterFocus' ) chrome . test . sendMessage ( 'TEST_STEP_PASSED' ) ; } ) ; }
See WebViewTest.Focus_FocusTracksEmbedder() to see how this is invoked.
See WebViewTest . Focus_FocusTracksEmbedder () to see how this is invoked .