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

Function assertSlider

test/jasmine/tests/sliders_test.js:430–436  ·  view source on GitHub ↗
(ticks, labels, gripx, active)

Source from the content-addressed store, hash-verified

428 return gripX / (railWidth - 2 * railRX);
429 }
430 function assertSlider(ticks, labels, gripx, active) {
431 assertNodeCount('.' + constants.groupClassName, 1);
432 assertNodeCount('.' + constants.tickRectClass, ticks);
433 assertNodeCount('.' + constants.labelGroupClass, labels);
434 expect(gripXFrac()).toBeWithin(gripx, 0.01);
435 expect(gd._fullLayout.sliders[1].active).toBe(active);
436 }
437 Plotly.relayout(gd, {'sliders[0].visible': false, 'sliders[1].active': 5})
438 .then(function() {
439 assertSlider(15, 8, 5 / 14, 5);

Callers 1

sliders_test.jsFile · 0.85

Calls 2

gripXFracFunction · 0.85
assertNodeCountFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…