B2G/gecko/content/base/test/test_XHR_timeout.js
/**
 * Generate and track XMLHttpRequests which will have abort() called on.
 *
 * @param shouldAbort {Boolean} True if we should call abort at all.
 * @param abortDelay  {Number}  The time in ms to wait before calling abort().
 */
Generate and track XMLHttpRequests which will have abort() called on.
@param shouldAbort {Boolean} True if we should call abort at all.
@param abortDelay  {Number}  The time in ms to wait before calling abort().
Generate and track XMLHttpRequests which will have abort () called on . @param shouldAbort { Boolean } True if we should call abort at all . @param abortDelay { Number } The time in ms to wait before calling abort () .
function AbortedRequest(shouldAbort, abortDelay) {
  this.shouldAbort = shouldAbort;
  this.abortDelay  = abortDelay;
  this.hasFired    = false;
}
function AbortedRequest ( shouldAbort , abortDelay ) { this . shouldAbort = shouldAbort ; this . abortDelay = abortDelay ; this . hasFired = false ; }
Generate and track XMLHttpRequests which will have abort() called on.
Generate and track XMLHttpRequests which will have abort () called on .