(dashArray, intervals)
| 1540 | |
| 1541 | |
| 1542 | function checkDashCount(dashArray, intervals) { |
| 1543 | // no-selection dasharrays have 2 entries: |
| 1544 | // 0 (no initial line) and a final gap as long as the whole bar |
| 1545 | // single-bar dasharrays have 4 entries: |
| 1546 | // 0 (no initial line), gap to first bar, first bar, final gap |
| 1547 | // each additional interval adds 2 entries before the final gap: |
| 1548 | // middle gap and new bar |
| 1549 | |
| 1550 | var segmentCount = 2 + 2 * intervals; |
| 1551 | expect(dashArray.length).toBe(segmentCount, dashArray); |
| 1552 | } |
| 1553 | |
| 1554 | it('@gl snaps ordinal constraints', function(done) { |
| 1555 | var newDashArray; |
no outgoing calls
no test coverage detected
searching dependent graphs…