fix broken test case
[dygraphs.git] / auto_tests / tests / pathological_cases.js
index c134b5f..21ff30a 100644 (file)
@@ -35,3 +35,16 @@ pathologicalCasesTestCase.prototype.testOnePoint = function() {
   var graph = document.getElementById("graph");
   var g = new Dygraph(graph, data, opts);
 };
+
+pathologicalCasesTestCase.prototype.testNullLegend = function() {
+  var opts = {
+    width: 480,
+    height: 320,
+    labelsDiv: null
+  };
+  var data = "X,Y\n" +
+             "1,2\n";
+
+  var graph = document.getElementById("graph");
+  var g = new Dygraph(graph, data, opts);
+};