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

Function _assert

test/jasmine/tests/splom_test.js:684–695  ·  view source on GitHub ↗
(dims)

Source from the content-addressed store, hash-verified

682 var cnt = 1;
683
684 function _assert(dims) {
685 var gridData = gd._fullLayout._splomGrid.passes;
686 var gridLengths = gridData.map(function(d) { return d.count * 2; });
687 var msg = ' - call #' + cnt;
688
689 expect(Object.keys(gridData).length)
690 .toBe(dims.length, '# of batches' + msg);
691 gridLengths.forEach(function(l, i) {
692 expect(l).toBe(dims[i], '# of coords in batch ' + i + msg);
693 });
694 cnt++;
695 }
696
697 _newPlot(gd, fig).then(function() {
698 _assert([1198, 16558, 3358, 118]);

Callers 1

splom_test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…