MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / run

Function run

example/tests/gm_xhr_test.js:461–473  ·  view source on GitHub ↗
(fetch)

Source from the content-addressed store, hash-verified

459 {
460 name: "GET basic [responseType: undefined]",
461 async run(fetch) {
462 const url = `${HB}/base64/${encodedBase64}`;
463 const { res } = await gmRequest({
464 method: "GET",
465 url,
466 fetch,
467 });
468 assertEq(res.status, 200, "status 200");
469 assertEq(res.responseText, decodedBase64, "responseText ok");
470 assertEq(res.response, decodedBase64, "response ok");
471 assertEq(res.responseXML instanceof XMLDocument, true, "responseXML ok");
472 assertEq(objectProps(res), "ok", "Object Props OK");
473 },
474 },
475 {
476 name: 'GET basic [responseType: ""]',

Callers

nothing calls this directly

Calls 15

getQueryObjFunction · 0.85
assertDeepEqFunction · 0.85
runCaseFunction · 0.85
GM_xmlhttpRequestFunction · 0.85
resPrintFunction · 0.85
getHeadersFunction · 0.85
pushMethod · 0.80
addMethod · 0.80
gmRequestFunction · 0.70
assertEqFunction · 0.70
objectPropsFunction · 0.70
assertFunction · 0.70

Tested by

no test coverage detected