(bgColor, activeColor)
| 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; |
no outgoing calls
no test coverage detected
searching dependent graphs…