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

Function _assert

test/jasmine/tests/smith_test.js:167–175  ·  view source on GitHub ↗
(exp)

Source from the content-addressed store, hash-verified

165 var inds = traces.map(function(_, i) { return i; });
166
167 function _assert(exp) {
168 expect(d3SelectAll('g.smith').size()).toBe(exp.subplot, '# subplot layer');
169
170 var clipCnt = 0;
171 d3SelectAll('clipPath').each(function() {
172 if(/smith-for-traces/.test(this.id)) clipCnt++;
173 });
174 expect(clipCnt).toBe(exp.clip, '# clip paths');
175 }
176
177 Plotly.newPlot(gd, fig).then(function() {
178 _assert({subplot: 1, clip: 1});

Callers 1

smith_test.jsFile · 0.70

Calls 2

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…