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

Function expectRequest

javascript/webdriver/test/http/corsclient_test.js:73–80  ·  view source on GitHub ↗
(mockXhr)

Source from the content-addressed store, hash-verified

71}
72
73function expectRequest(mockXhr) {
74 mockXhr.open('POST', URL + '/xdrpc', true);
75 return mockXhr.send(JSON.stringify({
76 'method': REQUEST.method,
77 'path': REQUEST.path,
78 'data': REQUEST.data
79 }));
80}
81
82function testDetectsWhenCorsIsAvailable() {
83 setXhr(undefined);

Calls 2

openMethod · 0.80
sendMethod · 0.65

Tested by

no test coverage detected