B2G/gecko/services/common/tests/unit/test_storage_server.js
/**
 * Helper function to synchronously perform a PUT request.
 *
 * @return Error instance or null if no error.
 */
Helper function to synchronously perform a PUT request.
@return Error instance or null if no error.
Helper function to synchronously perform a PUT request . @return Error instance or null if no error .
function doPutRequest(request, data) {
  let cb = Async.makeSpinningCallback();
  request.put(data, cb);
  return waitAndValidateResponse(cb, request);
}
function doPutRequest ( request , data ) { let cb = Async . makeSpinningCallback ( ) ; request . put ( data , cb ) ; return waitAndValidateResponse ( cb , request ) ; }
Helper function to synchronously perform a PUT request.
Helper function to synchronously perform a PUT request .