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

Function _assert

test/jasmine/tests/cartesian_interact_test.js:219–237  ·  view source on GitHub ↗
(markerDisplay, textDisplay, barTextDisplay)

Source from the content-addressed store, hash-verified

217
218 it('should show/hide `cliponaxis: false` pts according to range', function(done) {
219 function _assert(markerDisplay, textDisplay, barTextDisplay) {
220 var gd3 = d3Select(gd);
221
222 assertNodeDisplay(
223 gd3.select('.scatterlayer').selectAll('.point'),
224 markerDisplay,
225 'marker pts'
226 );
227 assertNodeDisplay(
228 gd3.select('.scatterlayer').selectAll('.textpoint'),
229 textDisplay,
230 'text pts'
231 );
232 assertNodeDisplay(
233 gd3.select('.barlayer').selectAll('.bartext'),
234 barTextDisplay,
235 'bar text'
236 );
237 }
238
239 function _run(p0, p1, markerDisplay, textDisplay, barTextDisplay) {
240 var fns = drag.makeFns({pos0: p0, posN: p1});

Callers 2

_runFunction · 0.70

Calls 5

assertAxesDrawCallsFunction · 0.85
_assertZoomboxFunction · 0.85
_assertClipRectFunction · 0.85
assertRangesFunction · 0.70
assertEventDataFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…