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

Function setXhr

javascript/webdriver/test/http/corsclient_test.js:62–67  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

60}
61
62function setXhr(value) {
63 stubs.set(goog.global, 'XMLHttpRequest', function() {
64 return value;
65 });
66 setXdr();
67}
68
69function setXdr(opt_value) {
70 stubs.set(goog.global, 'XDomainRequest', opt_value);

Callers 2

setUpFunction · 0.70

Calls 2

setXdrFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected