(bgColor, borderColor, borderWidth)
| 1286 | var mockCopy = Lib.extendDeep({}, require('../../image/mocks/0.json')); |
| 1287 | |
| 1288 | function assertLegendStyle(bgColor, borderColor, borderWidth) { |
| 1289 | var node = d3Select('g.legend').select('rect').node(); |
| 1290 | |
| 1291 | expect(node.style.fill).toEqual(bgColor); |
| 1292 | expect(node.style.stroke).toEqual(borderColor); |
| 1293 | expect(node.style.strokeWidth).toEqual(borderWidth + 'px'); |
| 1294 | } |
| 1295 | |
| 1296 | Plotly.newPlot(gd, mockCopy.data, mockCopy.layout) |
| 1297 | .then(function () { |
no outgoing calls
no test coverage detected
searching dependent graphs…