X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fpathological_cases.js;h=83cba8313837dd83dbeede8c9c6d0185f0e8f18d;hb=fa607ffbc86e564cd44c2626f14ef799518b8252;hp=c134b5f4bca7c833e16fb16e89eb96acc8cacf60;hpb=395e98a32b32d83097a641afb297b755734074c4;p=dygraphs.git diff --git a/auto_tests/tests/pathological_cases.js b/auto_tests/tests/pathological_cases.js index c134b5f..83cba83 100644 --- a/auto_tests/tests/pathological_cases.js +++ b/auto_tests/tests/pathological_cases.js @@ -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, {}); +}