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

Function setUp

javascript/webdriver/test/http/xhrclient_test.js:48–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46var mockClient, mockXhr;
47
48function setUp() {
49 mockClient = control.createStrictMock(webdriver.http.Client);
50 mockXhr = control.createStrictMock(FakeXhr);
51 stubs.set(goog.global, 'XMLHttpRequest', function() {
52 return mockXhr;
53 });
54}
55
56function tearDown() {
57 control.$tearDown();

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected