spec/lib/jspec.xhr.js
function(method, url, async, user, password) {
      this.user = user
      this.password = password
      this.url = url
      this.readyState = 1
      this.method = method.toUpperCase()
      if (async != undefined) this.async = async
      if (this.async) this.onreadystatechange()
    }
function(method, url, async, user, password) {
      this.user = user
      this.password = password
      this.url = url
      this.readyState = 1
      this.method = method.toUpperCase()
      if (async != undefined) this.async = async
      if (this.async) this.onreadystatechange()
    }
function ( method , url , async , user , password ) { this . user = user this . password = password this . url = url this . readyState = 1 this . method = method . toUpperCase ( ) if ( async != undefined ) this . async = async if ( this . async ) this . onreadystatechange ( ) }
Open mock request.
Open mock request .