(visible, msg)
| 702 | }); |
| 703 | |
| 704 | function _assertVisibleData(visible, msg) { |
| 705 | return function() { |
| 706 | var canvases = d3SelectAll('.gl-canvas'); |
| 707 | expect(canvases.size()).toBe(3, msg); |
| 708 | canvases.each(function() { |
| 709 | var imageArray = readPixel(this, 0, 0, this.width, this.height); |
| 710 | var foundPixel = false; |
| 711 | var i = 0; |
| 712 | do { |
| 713 | foundPixel = foundPixel || imageArray[i++] !== 0; |
| 714 | } while(!foundPixel && i < imageArray.length); |
| 715 | expect(foundPixel).toBe(visible, msg + ' - ' + this.className); |
| 716 | }); |
| 717 | }; |
| 718 | } |
| 719 | |
| 720 | it('@gl Calling `Plotly.restyle` with zero panels left should erase lines', function(done) { |
| 721 | var mockCopy = Lib.extendDeep({}, mock2); |
no test coverage detected
searching dependent graphs…