(ptsIn, ptsExpected)
| 608 | |
| 609 | it('works when far off-screen points cross the viewport', function() { |
| 610 | function _check(ptsIn, ptsExpected) { |
| 611 | var ptsOut = callLinePoints(ptsIn); |
| 612 | expect(JSON.stringify(ptsOut)).toEqual(JSON.stringify([ptsExpected])); |
| 613 | |
| 614 | var ptsOut2 = callLinePoints(ptsIn.map(reverseXY)).map(reverseXY2); |
| 615 | expect(JSON.stringify(ptsOut2)).toEqual(JSON.stringify([ptsExpected])); |
| 616 | } |
| 617 | |
| 618 | // first cross the viewport horizontally/vertically |
| 619 | _check([ |
no test coverage detected
searching dependent graphs…