X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fsanity.js;h=243f5237439e3d771090c7e6a7d58fb7fc44fcd7;hb=0d4989dbb907d4c5b5624d3a3a3cd21d7edeb8a9;hp=44e860cc85572980ab8abf34602ed1cfb05a4151;hpb=718ad8e231f9f83b478e814f4f9bf00910ba0da0;p=dygraphs.git diff --git a/auto_tests/tests/sanity.js b/auto_tests/tests/sanity.js index 44e860c..243f523 100644 --- a/auto_tests/tests/sanity.js +++ b/auto_tests/tests/sanity.js @@ -100,3 +100,21 @@ SanityTestCase.prototype.testToDomYCoord = function() { assertEqualsDelta(50 - x, g.toDomYCoord(x), 0.00001); } }; + +// 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. +SanityTestCase.prototype.testFillStack1 = function() { + var graph = document.getElementById("graph"); + new Dygraph(graph, ZERO_TO_FIFTY, { stackedGraph: true }); +} + +SanityTestCase.prototype.testFillStack2 = function() { + var graph = document.getElementById("graph"); + new Dygraph(graph, ZERO_TO_FIFTY, { stackedGraph: true, fillGraph: true }); +} + +SanityTestCase.prototype.testFillStack3 = function() { + var graph = document.getElementById("graph"); + new Dygraph(graph, ZERO_TO_FIFTY, { fillGraph: true }); +}