function testDisplayBlock() {
  var webview = new WebView();
  webview.onloadstop = function(e) {
    LOG('webview.onloadstop');
    window.console.error = function() {
      // If we see an error, that means attach failed.
      embedder.test.fail();
    };
    webview.style.display = 'block';
    embedder.test.assertTrue(webview.getProcessId() > 0);

    webview.onloadstop = function(e) {
      LOG('Second webview.onloadstop');
      embedder.test.succeed();
    };
    webview.src = 'data:text/html,<body>Second load</body>';
  }
  webview.src = 'about:blank';
  document.body.appendChild(webview);
}
// not throw and attach error.
not throw and attach error.
not throw and attach error .
function testDisplayBlock() {
  var webview = new WebView();
  webview.onloadstop = function(e) {
    LOG('webview.onloadstop');
    window.console.error = function() {
      embedder.test.fail();
    };
    webview.style.display = 'block';
    embedder.test.assertTrue(webview.getProcessId() > 0);
    webview.onloadstop = function(e) {
      LOG('Second webview.onloadstop');
      embedder.test.succeed();
    };
    webview.src = 'data:text/html,<body>Second load</body>';
  }
  webview.src = 'about:blank';
  document.body.appendChild(webview);
}
function testDisplayBlock ( ) { var webview = new WebView ( ) ; webview . onloadstop = function ( e ) { LOG ( 'webview.onloadstop' ) ; window . console . error = function ( ) { embedder . test . fail ( ) ; } ; webview . style . display = 'block' ; embedder . test . assertTrue ( webview . getProcessId ( ) > 0 ) ; webview . onloadstop = function ( e ) { LOG ( 'Second webview.onloadstop' ) ; embedder . test . succeed ( ) ; } ; webview . src = 'data:text/html,<body>Second load</body>' ; } webview . src = 'about:blank' ; document . body . appendChild ( webview ) ; }
not throw and attach error.
not throw and attach error .
// If we see an error, that means attach failed.