MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / FakeXmlHttpRequest

Function FakeXmlHttpRequest

javascript/webdriver/test/http/http_test.js:366–372  ·  view source on GitHub ↗
(headers, status, responseText)

Source from the content-addressed store, hash-verified

364}
365
366function FakeXmlHttpRequest(headers, status, responseText) {
367 return {
368 getAllResponseHeaders: function() { return headers; },
369 status: status,
370 responseText: responseText
371 };
372}
373
374function testXmlHttpRequestToHttpResponse_parseHeaders_windows() {
375 var response = webdriver.http.Response.fromXmlHttpRequest(

Calls

no outgoing calls

Tested by

no test coverage detected