+
+// Regression test for issue #411
+MissingPointsTestCase.prototype.testEmptySeries = function() {
+ var graphDiv = document.getElementById("graph");
+ var g = new Dygraph(
+ graphDiv,
+ "Time,Empty Series,Series 1,Series 2\n" +
+ "1381134460,,0,100\n" +
+ "1381134461,,1,99\n" +
+ "1381134462,,2,98\n" +
+ "1381134463,,3,97\n" +
+ "1381134464,,4,96\n" +
+ "1381134465,,5,95\n" +
+ "1381134466,,6,94\n" +
+ "1381134467,,7,93\n" +
+ "1381134468,,8,92\n" +
+ "1381134469,,9,91\n", {
+ visibility: [true, false, true],
+ dateWindow: [1381134465, 1381134467]
+ });
+
+ g.setSelection(6);
+ assertEquals("1381134466: Series 2: 94", Util.getLegend(graphDiv));
+};