MCPcopy
hub / github.com/apache/echarts / findInputCreatedAndCheck

Function findInputCreatedAndCheck

test/lib/testHelper.js:849–864  ·  view source on GitHub ↗
(inputId, errorHandling)

Source from the content-addressed store, hash-verified

847 }
848
849 function findInputCreatedAndCheck(inputId, errorHandling) {
850 var inputCreated = _inputsDict[inputId];
851 if (!inputCreated) {
852 var errMsg = errMsgPrefix + ' No input found by id: ' + inputId + '. May caused by test case change.';
853 if (errorHandling.log) {
854 console.error(errMsg);
855 }
856 else if (errorHandling.throw) {
857 throw new Error(errMsg);
858 }
859 else {
860 throw new Error('internal failure.')
861 }
862 }
863 return inputCreated;
864 }
865
866 function retrieveInputDefineList(define) {
867 var defineList = retrieveValue(define.buttons, define.button, define.input, define.inputs);

Callers 3

disableInputsFunction · 0.85
replayInputsFunction · 0.85
setInputsStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…