MCPcopy Index your code
hub / github.com/plotly/plotly.js / _check

Function _check

test/jasmine/tests/scatter_test.js:610–616  ·  view source on GitHub ↗
(ptsIn, ptsExpected)

Source from the content-addressed store, hash-verified

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([

Callers 1

scatter_test.jsFile · 0.70

Calls 1

callLinePointsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…