X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fsanity.js;h=528b7a14dc4e5ec14822e5d04e29a66ac305acf0;hb=758a629f806fa73483f730fb343013acd0ace078;hp=243f5237439e3d771090c7e6a7d58fb7fc44fcd7;hpb=ab80172e885f5cafb2525dab0bf4102d49e8f7b6;p=dygraphs.git diff --git a/auto_tests/tests/sanity.js b/auto_tests/tests/sanity.js index 243f523..528b7a1 100644 --- a/auto_tests/tests/sanity.js +++ b/auto_tests/tests/sanity.js @@ -101,6 +101,14 @@ SanityTestCase.prototype.testToDomYCoord = function() { } }; +/** + * Test that the two-argument form of the constructor (no options) works. + */ +SanityTestCase.prototype.testTwoArgumentConstructor = function() { + var graph = document.getElementById("graph"); + new Dygraph(graph, ZERO_TO_FIFTY); +}; + // Here is the first of a series of tests that just ensure the graph is drawn // without exception. //TODO(konigsberg): Move to its own test case.