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

Function assertTraceCount

test/jasmine/tests/histogram_test.js:1257–1259  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

1255
1256 it('can recalc after the first trace is hidden', function(done) {
1257 function assertTraceCount(n) {
1258 expect(gd.querySelectorAll('.trace').length).toBe(n);
1259 }
1260
1261 Plotly.newPlot(gd, [{
1262 x: [1, 2, 3], type: 'histogram'

Callers 1

histogram_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…