X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=auto_tests%2Ftests%2Fper_series.js;h=8f647cc71f8d0e608447b89397327ca4c5a3aaba;hb=38f280e5004391d7baf23f355f62799da03b0598;hp=4831ded5994b62d0ca4358a22f4fe78ea3a31842;hpb=9f636500f08868182ecd88288636e7f8718e28de;p=dygraphs.git diff --git a/auto_tests/tests/per_series.js b/auto_tests/tests/per_series.js index 4831ded..8f647cc 100644 --- a/auto_tests/tests/per_series.js +++ b/auto_tests/tests/per_series.js @@ -1,9 +1,9 @@ /** - * @fileoverview FILL THIS IN + * @fileoverview Tests for per-series options. * * @author danvk@google.com (Dan Vanderkam) */ -var perSeriesTestCase = TestCase("per-series"); +var Tests for per-series options. perSeriesTestCase.prototype.setUp = function() { document.body.innerHTML = "
"; @@ -48,3 +48,16 @@ perSeriesTestCase.prototype.testPerSeriesFill = function() { assertEquals([255,0,0,38], sampler.colorAtCoordinate(6.5, 0.5)); }; +perSeriesTestCase.prototype.testOldStyleSeries = function() { + var opts = { + pointSize : 5 + Y: { pointSize : 4 }, + }; + var data = "X,Y,Z\n1,0,0\n"; + g = new Dygraph("Graph", data, opts); + + assertEquals(5, g.getOption("pointSize")); + assertEquals(4, g.getOption("pointSize", "Y")); + assertEquals(5, g.getOption("pointSize", "Z")); +}; +