Add missing_points.js to the bunch (as part of prior move .. oooops)
authorRobert Konigsberg <konigsberg@google.com>
Thu, 14 Jun 2012 15:31:41 +0000 (11:31 -0400)
committerRobert Konigsberg <konigsberg@google.com>
Thu, 14 Jun 2012 15:31:41 +0000 (11:31 -0400)
auto_tests/tests/missing_points.js

index 9e4cdd5..50c2d5b 100644 (file)
@@ -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");
+}