Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SeleniumHQ/selenium
/ setXdr
Function
setXdr
javascript/webdriver/test/http/corsclient_test.js:69–71 ·
view source on GitHub ↗
(opt_value)
Source
from the content-addressed store, hash-verified
67
}
68
69
function
setXdr(opt_value) {
70
stubs.set(goog.global,
'XDomainRequest'
, opt_value);
71
}
72
73
function
expectRequest(mockXhr) {
74
mockXhr.open(
'POST'
, URL +
'/xdrpc'
, true);
Callers
2
setXhr
Function · 0.85
testDetectsWhenCorsIsAvailable
Function · 0.85
Calls
1
set
Method · 0.65
Tested by
no test coverage detected