B2G/gecko/testing/marionette/marionette-server.js
/**
   * Set the timeout for asynchronous script execution
   *
   * @param object aRequest
   *        'value' member is time in milliseconds to set timeout
   */
Set the timeout for asynchronous script execution
@param object aRequest
'value' member is time in milliseconds to set timeout
Set the timeout for asynchronous script execution @param object aRequest ' value ' member is time in milliseconds to set timeout
function MDA_setScriptTimeout(aRequest) {
    this.command_id = this.getCommandId();
    let timeout = parseInt(aRequest.value);
    if(isNaN(timeout)){
      this.sendError("Not a Number", 500, null, this.command_id);
    }
    else {
      this.scriptTimeout = timeout;
      this.sendOk(this.command_id);
    }
  }
function MDA_setScriptTimeout ( aRequest ) { this . command_id = this . getCommandId ( ) ; let timeout = parseInt ( aRequest . value ) ; if ( isNaN ( timeout ) ) { this . sendError ( "Not a Number" , 500 , null , this . command_id ) ; } else { this . scriptTimeout = timeout ; this . sendOk ( this . command_id ) ; } }
Set the timeout for asynchronous script execution
 @param object aRequest
        'value' member is time in milliseconds to set timeout
Set the timeout for asynchronous script execution @param object aRequest ' value ' member is time in milliseconds to set timeout