()
| 1595 | } |
| 1596 | |
| 1597 | function assertTraceToggleRect() { |
| 1598 | var nodes = d3SelectAll('rect.legendtoggle'); |
| 1599 | |
| 1600 | nodes.each(function () { |
| 1601 | var node = d3Select(this); |
| 1602 | |
| 1603 | expect(node.attr('x')).toEqual('0'); |
| 1604 | expect(node.attr('y')).toEqual('-9.5'); |
| 1605 | expect(node.attr('height')).toEqual('19'); |
| 1606 | |
| 1607 | var w = +node.attr('width'); |
| 1608 | expect(w).toBeWithin(113, 10); |
| 1609 | }); |
| 1610 | } |
| 1611 | |
| 1612 | Plotly.newPlot(gd, mockCopy.data, mockCopy.layout) |
| 1613 | .then(function () { |
no outgoing calls
no test coverage detected
searching dependent graphs…