X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fper_series.js;h=1a044966ff7e3a9b036efdcd2e59951cddb609a2;hb=c1c42651dd140ecb0460cfcff736aceb117f9cc6;hp=8d81c7b399238900fdc974fb667ddb0ba5eee785;hpb=6ad8b6a444ae32d026264409698f496506b3d33b;p=dygraphs.git diff --git a/auto_tests/tests/per_series.js b/auto_tests/tests/per_series.js index 8d81c7b..1a04496 100644 --- a/auto_tests/tests/per_series.js +++ b/auto_tests/tests/per_series.js @@ -146,3 +146,22 @@ perSeriesTestCase.prototype.testAxisInNewSeries_withAxes = function() { assertEquals(6, g.getOption("pointSize", "D")); assertEquals(7, g.getOption("pointSize", "E")); }; + +// TODO(konigsberg): move to multiple_axes.js +perSeriesTestCase.prototype.testOldAxisSpecInNewSeriesThrows = function() { + var opts = { + series : { + D : { axis : {} }, + }, + }; + var graph = document.getElementById("graph"); + var data = "X,A,B,C,D,E\n0,1,2,3,4,5\n"; + var threw = false; + try { + new Dygraph(graph, data, opts); + } catch(e) { + threw = true; + } + + assertTrue(threw); +}