From 0b9ce4de137db60db2476fe7ee9cc05215612e30 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Thu, 14 Jun 2012 11:31:41 -0400 Subject: [PATCH] Add missing_points.js to the bunch (as part of prior move .. oooops) --- auto_tests/tests/missing_points.js | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) 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"); +} -- 2.7.4