MCPcopy
hub / github.com/ampproject/amphtml / xhrServiceForTesting

Function xhrServiceForTesting

src/service/xhr-impl.js:209–212  ·  view source on GitHub ↗
(window)

Source from the content-addressed store, hash-verified

207 * @return {!Xhr}
208 */
209export function xhrServiceForTesting(window) {
210 installXhrService(window);
211 return getService(window, 'xhr');
212}
213
214/**
215 * @param {!Window} window

Callers 5

fetchAdContentFunction · 0.90
test-xhr.jsFile · 0.90
test-amp-video.jsFile · 0.90

Calls 2

getServiceFunction · 0.90
installXhrServiceFunction · 0.85

Tested by

no test coverage detected