X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fsanity.js;h=528b7a14dc4e5ec14822e5d04e29a66ac305acf0;hb=3cfc4c9f46493dfa98464ee6fdb78e72aabd32a6;hp=243f5237439e3d771090c7e6a7d58fb7fc44fcd7;hpb=0d4989dbb907d4c5b5624d3a3a3cd21d7edeb8a9;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.