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

Function assertEventCounts

test/jasmine/tests/select_test.js:135–139  ·  view source on GitHub ↗
(selecting, selected, deselect, msg)

Source from the content-addressed store, hash-verified

133}
134
135function assertEventCounts(selecting, selected, deselect, msg) {
136 expect(selectingCnt).toBe(selecting, 'plotly_selecting call count: ' + msg);
137 expect(selectedCnt).toBe(selected, 'plotly_selected call count: ' + msg);
138 expect(deselectCnt).toBe(deselect, 'plotly_deselect call count: ' + msg);
139}
140
141// TODO: in v3, when we get rid of the `plotly_selected->undefined` event, these will
142// change to BOXEVENTS = [1, 1, 1], LASSOEVENTS = [4, 1, 1]. See also _run down below

Callers 1

_runFunction · 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…