Move common code to Util.js, reducing multiple-axes tests.
[dygraphs.git] / auto_tests / tests / pathological_cases.js
index c134b5f..83cba83 100644 (file)
@@ -35,3 +35,23 @@ 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);
+};
+
+pathologicalCasesTestCase.prototype.testDivAsString = function() {
+  var data = "X,Y\n" +
+             "1,2\n";
+
+  var g = new Dygraph('graph', data, {});
+}