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");
+}