B2G/gecko/testing/marionette/marionette-server.js
/**
   * Set timeout for page loading, searching and scripts
   *
   * @param object aRequest
   *        'type' hold the type of timeout
   *        'ms' holds the timeout in milliseconds
   */
Set timeout for page loading, searching and scripts
@param object aRequest
'type' hold the type of timeout
'ms' holds the timeout in milliseconds
Set timeout for page loading searching and scripts @param object aRequest ' type ' hold the type of timeout ' ms ' holds the timeout in milliseconds
function MDA_timeouts(aRequest){
    this.command_id = this.getCommandId();
    let timeout_type = aRequest.timeoutType;
    let timeout = parseInt(aRequest.ms);
    if (isNaN(timeout)) {
      this.sendError("Not a Number", 500, null, this.command_id);
    }
    else {
      if (timeout_type == "implicit") {
        aRequest.value = aRequest.ms;
        this.setSearchTimeout(aRequest);
      }
      else if (timeout_type == "script") {
        aRequest.value = aRequest.ms;
        this.setScriptTimeout(aRequest);
      }
      else {
        this.pageTimeout = timeout;
        this.sendOk(this.command_id);
      }
    }
  }
function MDA_timeouts ( aRequest ) { this . command_id = this . getCommandId ( ) ; let timeout_type = aRequest . timeoutType ; let timeout = parseInt ( aRequest . ms ) ; if ( isNaN ( timeout ) ) { this . sendError ( "Not a Number" , 500 , null , this . command_id ) ; } else { if ( timeout_type == "implicit" ) { aRequest . value = aRequest . ms ; this . setSearchTimeout ( aRequest ) ; } else if ( timeout_type == "script" ) { aRequest . value = aRequest . ms ; this . setScriptTimeout ( aRequest ) ; } else { this . pageTimeout = timeout ; this . sendOk ( this . command_id ) ; } } }
Set timeout for page loading, searching and scripts
 @param object aRequest
        'type' hold the type of timeout
        'ms' holds the timeout in milliseconds
Set timeout for page loading searching and scripts @param object aRequest ' type ' hold the type of timeout ' ms ' holds the timeout in milliseconds
/*setTimeout*/