B2G/gecko/services/common/tests/unit/test_storage_server.js
/**
 * Helper function to synchronously wait for a response and validate it.
 */
Helper function to synchronously wait for a response and validate it.
Helper function to synchronously wait for a response and validate it .
function waitAndValidateResponse(cb, request) {
  let error = cb.wait();
  if (!error) {
    validateResponse(request.response);
  }
  return error;
}
function waitAndValidateResponse ( cb , request ) { let error = cb . wait ( ) ; if ( ! error ) { validateResponse ( request . response ) ; } return error ; }
Helper function to synchronously wait for a response and validate it.
Helper function to synchronously wait for a response and validate it .