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

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

  embedder.setUpLoadStop_(webview, 'test1');
  // WebViewTest sets (mock) lat, lng to 10, 20.
  embedder.registerAndWaitForPostMessage_(
      webview, ['test1', 'access-granted', 10, 20]);
}
// acccess to geolocation and allows geolocation for the guest.
acccess to geolocation and allows geolocation for the guest.
acccess to geolocation and allows geolocation for the guest .
function testAllow() {
  var webview = embedder.setUpGuest_();
  var onPermissionRequest = function(e) {
    chrome.test.log('Embedder notified on permissionRequest');
    embedder.assertCorrectEvent_(e);
    e.request.allow();
  };
  webview.addEventListener('permissionrequest', onPermissionRequest);
  embedder.setUpLoadStop_(webview, 'test1');
  embedder.registerAndWaitForPostMessage_(
      webview, ['test1', 'access-granted', 10, 20]);
}
function testAllow ( ) { var webview = embedder . setUpGuest_ ( ) ; var onPermissionRequest = function ( e ) { chrome . test . log ( 'Embedder notified on permissionRequest' ) ; embedder . assertCorrectEvent_ ( e ) ; e . request . allow ( ) ; } ; webview . addEventListener ( 'permissionrequest' , onPermissionRequest ) ; embedder . setUpLoadStop_ ( webview , 'test1' ) ; embedder . registerAndWaitForPostMessage_ ( webview , [ 'test1' , 'access-granted' , 10 , 20 ] ) ; }
acccess to geolocation and allows geolocation for the guest.
acccess to geolocation and allows geolocation for the guest .
// WebViewTest sets (mock) lat, lng to 10, 20.