MCPcopy
hub / github.com/plotly/plotly.js / _assert

Function _assert

test/jasmine/tests/polar_test.js:229–241  ·  view source on GitHub ↗
(expected)

Source from the content-addressed store, hash-verified

227 var dflt = constants.layerNames;
228
229 function _assert(expected) {
230 var actual = d3SelectAll('g.polar > .polarsublayer');
231
232 expect(actual.size()).toBe(expected.length, '# of layer');
233
234 actual.each(function(d, i) {
235 var className = d3Select(this)
236 .attr('class')
237 .split('polarsublayer ')[1];
238
239 expect(className).toBe(expected[i], 'layer ' + i);
240 });
241 }
242
243 Plotly.newPlot(gd, fig).then(function() {
244 _assert(dflt);

Callers 2

polar_test.jsFile · 0.70
_assertBaseFunction · 0.70

Calls 3

assertLetterCountFunction · 0.85
assertEventPointDataFunction · 0.70
assertEventCntFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…