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

Function checkButtonColor

test/jasmine/tests/range_selector_test.js:486–494  ·  view source on GitHub ↗
(bgColor, activeColor)

Source from the content-addressed store, hash-verified

484 }
485
486 function checkButtonColor(bgColor, activeColor) {
487 d3SelectAll('.button').each(function(d) {
488 var rect = d3Select(this).select('rect');
489
490 expect(rect.node().style.fill).toEqual(
491 d._isActive ? activeColor : bgColor
492 );
493 });
494 }
495
496 it('should display the correct nodes and can hide buttons', function(done) {
497 var allButtons = mockCopy.layout.xaxis.rangeselector.buttons.length;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…