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

Function _assert

test/jasmine/tests/ternary_test.js:281–293  ·  view source on GitHub ↗
(layers)

Source from the content-addressed store, hash-verified

279 ];
280
281 function _assert(layers) {
282 var toplevel = d3SelectAll('g.ternary > .toplevel');
283
284 expect(toplevel.size()).toBe(layers.length, '# of layer');
285
286 toplevel.each(function(d, i) {
287 var className = d3Select(this)
288 .attr('class')
289 .split('toplevel ')[1];
290
291 expect(className).toBe(layers[i], 'layer ' + i);
292 });
293 }
294
295 Plotly.newPlot(gd, fig).then(function() {
296 _assert(dflt);

Callers 1

ternary_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…