function CreateWebViewAndGuest(callback) {
  var webview = document.createElement('webview');
  webview.allowtransparency = true;
  webview.allowscaling = true;
  var onLoadStop = function(e) {
    chrome.test.sendMessage('WebViewTest.LAUNCHED');
    webview.removeEventListener('loadstop', onLoadStop);
    webview.removeEventListener('loadabort', onLoadAbort);
    callback();
  };
  webview.addEventListener('loadstop', onLoadStop);

  var onLoadAbort = function(e) {
    chrome.test.sendMessage('WebViewTest.FAILURE');
    webview.removeEventListener('loadstop', onLoadStop);
    webview.removeEventListener('loadabort', onLoadAbort);
  };
  webview.src = 'data:text/html,<html><body>simple test</body></html>';
  return webview;
}
// found in the LICENSE file.
found in the LICENSE file.
found in the LICENSE file .
function CreateWebViewAndGuest(callback) {
  var webview = document.createElement('webview');
  webview.allowtransparency = true;
  webview.allowscaling = true;
  var onLoadStop = function(e) {
    chrome.test.sendMessage('WebViewTest.LAUNCHED');
    webview.removeEventListener('loadstop', onLoadStop);
    webview.removeEventListener('loadabort', onLoadAbort);
    callback();
  };
  webview.addEventListener('loadstop', onLoadStop);
  var onLoadAbort = function(e) {
    chrome.test.sendMessage('WebViewTest.FAILURE');
    webview.removeEventListener('loadstop', onLoadStop);
    webview.removeEventListener('loadabort', onLoadAbort);
  };
  webview.src = 'data:text/html,<html><body>simple test</body></html>';
  return webview;
}
function CreateWebViewAndGuest ( callback ) { var webview = document . createElement ( 'webview' ) ; webview . allowtransparency = true ; webview . allowscaling = true ; var onLoadStop = function ( e ) { chrome . test . sendMessage ( 'WebViewTest.LAUNCHED' ) ; webview . removeEventListener ( 'loadstop' , onLoadStop ) ; webview . removeEventListener ( 'loadabort' , onLoadAbort ) ; callback ( ) ; } ; webview . addEventListener ( 'loadstop' , onLoadStop ) ; var onLoadAbort = function ( e ) { chrome . test . sendMessage ( 'WebViewTest.FAILURE' ) ; webview . removeEventListener ( 'loadstop' , onLoadStop ) ; webview . removeEventListener ( 'loadabort' , onLoadAbort ) ; } ; webview . src = 'data:text/html,<html><body>simple test</body></html>' ; return webview ; }
found in the LICENSE file.
found in the LICENSE file .