(expectations, msg)
| 1603 | }); |
| 1604 | |
| 1605 | function assertAnnotationText(expectations, msg) { |
| 1606 | var anns = d3SelectAll('g.annotation-text-g'); |
| 1607 | |
| 1608 | expect(anns.size()).toBe(expectations.length, msg); |
| 1609 | |
| 1610 | anns.each(function(_, i) { |
| 1611 | var tx = d3Select(this).select('text').text(); |
| 1612 | expect(tx).toEqual(expectations[i], msg + ' - ann ' + i); |
| 1613 | }); |
| 1614 | } |
| 1615 | |
| 1616 | function assertAnnotationsXY(expectations, msg) { |
| 1617 | var TOL = 2.5; |
no outgoing calls
no test coverage detected
searching dependent graphs…