From: Robert Konigsberg Date: Thu, 14 Jun 2012 15:31:41 +0000 (-0400) Subject: Add missing_points.js to the bunch (as part of prior move .. oooops) X-Git-Tag: v1.0.0~238^2^2~21 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=0b9ce4de137db60db2476fe7ee9cc05215612e30;p=dygraphs.git Add missing_points.js to the bunch (as part of prior move .. oooops) --- diff --git a/auto_tests/tests/missing_points.js b/auto_tests/tests/missing_points.js index 9e4cdd5..50c2d5b 100644 --- a/auto_tests/tests/missing_points.js +++ b/auto_tests/tests/missing_points.js @@ -111,3 +111,50 @@ MissingPointsTestCase.prototype.testSeparatedPointsDontDraw_expanded_connected = CanvasAssertions.assertLineDrawn(htx, [370, 87], [475, 25], { strokeStyle: '#0000ff', }); } + +/** + * At the time of writing this test, the blue series is only points, and not lines. + */ +MissingPointsTestCase.prototype.testConnectSeparatedPoints = function() { + var g = new Dygraph( + document.getElementById("graph"), + [ + [1, null, 3], + [2, 2, null], + [3, null, 7], + [4, 5, null], + [5, null, 5], + [6, 3, null] + ], + { + connectSeparatedPoints: true, + drawPoints: true, + colors: ['red', 'blue'] + } + ); + fail("write assertions"); +} + +/** + * At the time of writing this test, the blue series is only points, and not lines. + */ +MissingPointsTestCase.prototype.testConnectSeparatedPointsWithNan = function() { + var g = new Dygraph( + document.getElementById("graph"), + "x,A,B \n" + + "1,,3 \n" + + "2,2, \n" + + "3,,5 \n" + + "4,4, \n" + + "5,,7 \n" + + "6,NaN, \n" + + "8,8, \n" + + "10,10, \n", + { + connectSeparatedPoints: true, + drawPoints: true, + colors: ['red', 'blue'] + } + ); + fail("write assertions"); +}