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

Function check

test/jasmine/tests/polar_test.js:340–347  ·  view source on GitHub ↗
(cnt, expected)

Source from the content-addressed store, hash-verified

338 var fig = Lib.extendDeep({}, require('../../image/mocks/polar_scatter.json'));
339
340 function check(cnt, expected) {
341 var ticks = d3SelectAll('path.angularaxistick');
342
343 expect(ticks.size()).toBe(cnt, '# of ticks');
344 ticks.each(function() {
345 expect(d3Select(this).attr('d')).toBe(expected);
346 });
347 }
348
349 Plotly.newPlot(gd, fig).then(function() {
350 check(8, 'M1.5,0h5');

Callers 1

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