MCPcopy Index your code
hub / github.com/plotly/plotly.js / testShapeCombo

Function testShapeCombo

test/jasmine/assets/domain_ref_components.js:582–605  ·  view source on GitHub ↗
(combo, assert, gd)

Source from the content-addressed store, hash-verified

580}
581
582function testShapeCombo(combo, assert, gd) {
583 var xaxisType = combo[0];
584 var yaxisType = combo[1];
585 var axispair = combo[2];
586 var xaroPos = combo[3];
587 var yaroPos = combo[4];
588 var shapeType = combo[5];
589 var xAxNum = axispair[0].slice(1);
590 var yAxNum = axispair[1].slice(1);
591 return Plotly.newPlot(gd, Lib.extendDeep({}, testMock))
592 .then(function(gd) {
593 return shapeTest(gd,
594 {xAxNum: xAxNum,
595 xaxisType: xaxisType,
596 xaroPos: xaroPos,
597 yAxNum: yAxNum,
598 yaxisType: yaxisType,
599 yaroPos: yaroPos,
600 aroType: shapeType,
601 });
602 }).then(function(testRet) {
603 assert(testRet);
604 });
605}
606
607function describeImageComboTest(combo) {
608 var axistypex = combo[0];

Callers

nothing calls this directly

Calls 2

shapeTestFunction · 0.85
assertFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…