function onGetActionsRequested(options, onSuccess, onError) {
  if (options.fileSystemId !== test_util.FILE_SYSTEM_ID) {
    onError('SECURITY');  // enum ProviderError.
    return;
  }

  if (options.entryPaths.indexOf('/' + TESTING_NO_ACTIONS_DIR.name) !== -1) {
    onSuccess([]);
    return;
  }

  if (options.entryPaths.indexOf('/' + TESTING_ACTIONS_DIR.name) !== -1) {
    onSuccess(TESTING_ACTIONS_DIR_ACTIONS);
    return;
  }

  onError('NOT_FOUND');  // enum ProviderError.
}
/**
 * Returns a list of actions for the requested entry
 *
 * @param {GetActionsRequestedOptions} options Options.
 * @param {function(Array<Object>)} onSuccess Success callback with a list of
 *     actions.
 * @param {function(string)} onError Error callback with an error code.
 */
Returns a list of actions for the requested entry
@param {GetActionsRequestedOptions} options Options.
@param {function(Array)} onSuccess Success callback with a list of
actions.
@param {function(string)} onError Error callback with an error code.
Returns a list of actions for the requested entry @param { GetActionsRequestedOptions } options Options . @param { function ( Array ) } onSuccess Success callback with a list of actions . @param { function ( string ) } onError Error callback with an error code .
function onGetActionsRequested(options, onSuccess, onError) {
  if (options.fileSystemId !== test_util.FILE_SYSTEM_ID) {
    onError('SECURITY');  
    return;
  }
  if (options.entryPaths.indexOf('/' + TESTING_NO_ACTIONS_DIR.name) !== -1) {
    onSuccess([]);
    return;
  }
  if (options.entryPaths.indexOf('/' + TESTING_ACTIONS_DIR.name) !== -1) {
    onSuccess(TESTING_ACTIONS_DIR_ACTIONS);
    return;
  }
  onError('NOT_FOUND');  
}
function onGetActionsRequested ( options , onSuccess , onError ) { if ( options . fileSystemId !== test_util . FILE_SYSTEM_ID ) { onError ( 'SECURITY' ) ; return ; } if ( options . entryPaths . indexOf ( '/' + TESTING_NO_ACTIONS_DIR . name ) !== - 1 ) { onSuccess ( [ ] ) ; return ; } if ( options . entryPaths . indexOf ( '/' + TESTING_ACTIONS_DIR . name ) !== - 1 ) { onSuccess ( TESTING_ACTIONS_DIR_ACTIONS ) ; return ; } onError ( 'NOT_FOUND' ) ; }
Returns a list of actions for the requested entry
 @param {GetActionsRequestedOptions} options Options.
Returns a list of actions for the requested entry @param { GetActionsRequestedOptions } options Options .
// enum ProviderError. // enum ProviderError.