function testDeny() {
  var webview = embedder.setUpGuest_();

  var onPermissionRequest = function(e) {
    chrome.test.log('Embedder notified on permissionRequest');
    embedder.assertCorrectEvent_(e);
    e.request.deny();
  };
  webview.addEventListener('permissionrequest', onPermissionRequest);

  embedder.setUpLoadStop_(webview, 'test2');
  embedder.registerAndWaitForPostMessage_(
      webview, ['test2', 'access-denied']);
}
// denies access to filesystem for the guest.
denies access to filesystem for the guest.
denies access to filesystem for the guest .
function testDeny() {
  var webview = embedder.setUpGuest_();
  var onPermissionRequest = function(e) {
    chrome.test.log('Embedder notified on permissionRequest');
    embedder.assertCorrectEvent_(e);
    e.request.deny();
  };
  webview.addEventListener('permissionrequest', onPermissionRequest);
  embedder.setUpLoadStop_(webview, 'test2');
  embedder.registerAndWaitForPostMessage_(
      webview, ['test2', 'access-denied']);
}
function testDeny ( ) { var webview = embedder . setUpGuest_ ( ) ; var onPermissionRequest = function ( e ) { chrome . test . log ( 'Embedder notified on permissionRequest' ) ; embedder . assertCorrectEvent_ ( e ) ; e . request . deny ( ) ; } ; webview . addEventListener ( 'permissionrequest' , onPermissionRequest ) ; embedder . setUpLoadStop_ ( webview , 'test2' ) ; embedder . registerAndWaitForPostMessage_ ( webview , [ 'test2' , 'access-denied' ] ) ; }
denies access to filesystem for the guest.
denies access to filesystem for the guest .