xhr/resources/xmlhttprequest-timeout.js
/**
 * Generate and track results from a XMLHttpRequest with regards to timeouts.
 *
 * @param {String} id         The test description.
 * @param {Number} timeLimit  The initial setting for the request timeout.
 * @param {Number} resetAfter (Optional) The time after sending the request, to
 *                            reset the timeout.
 * @param {Number} resetTo    (Optional) The delay to reset the timeout to.
 *
 * @note The actual testing takes place in handleEvent(event).
 * The requests are generated in startXHR().
 *
 * @note If resetAfter and resetTo are omitted, only the initial timeout setting
 * applies.
 *
 * @constructor
 * @implements DOMEventListener
 */
Generate and track results from a XMLHttpRequest with regards to timeouts.
@param {String} id         The test description.
@param {Number} timeLimit  The initial setting for the request timeout.
@param {Number} resetAfter (Optional) The time after sending the request, to
reset the timeout.
@param {Number} resetTo    (Optional) The delay to reset the timeout to.

@note The actual testing takes place in handleEvent(event).
The requests are generated in startXHR().

@note If resetAfter and resetTo are omitted, only the initial timeout setting
applies.


Generate and track results from a XMLHttpRequest with regards to timeouts . @param { String } id The test description . @param { Number } timeLimit The initial setting for the request timeout . @param { Number } resetAfter ( Optional ) The time after sending the request to reset the timeout . @param { Number } resetTo ( Optional ) The delay to reset the timeout to . @note The actual testing takes place in handleEvent ( event ) . The requests are generated in startXHR () . @note If resetAfter and resetTo are omitted only the initial timeout setting applies .
function RequestTracker(async, id, timeLimit ) {
  this.async = async;
  this.id = id;
  this.timeLimit = timeLimit;
  if (arguments.length > 3) {
    this.mustReset  = true;
    this.resetAfter = arguments[3];
    this.resetTo    = arguments[4];
  }
  this.hasFired = false;
}
function RequestTracker ( async , id , timeLimit ) { this . async = async ; this . id = id ; this . timeLimit = timeLimit ; if ( arguments . length > 3 ) { this . mustReset = true ; this . resetAfter = arguments [ 3 ] ; this . resetTo = arguments [ 4 ] ; } this . hasFired = false ; }
Generate and track results from a XMLHttpRequest with regards to timeouts.
Generate and track results from a XMLHttpRequest with regards to timeouts .
/*[, resetAfter, resetTo]*/