X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fper_series.js;h=1a044966ff7e3a9b036efdcd2e59951cddb609a2;hb=1dc23fac4c126b2b3742801b2d82137044498ebf;hp=ab52addfdaa1cc2d27f091a6c755feac18cc3a27;hpb=21ebe38bb1eeae3a7fd73335a411bfd81c66d985;p=dygraphs.git diff --git a/auto_tests/tests/per_series.js b/auto_tests/tests/per_series.js index ab52add..1a04496 100644 --- a/auto_tests/tests/per_series.js +++ b/auto_tests/tests/per_series.js @@ -156,11 +156,12 @@ perSeriesTestCase.prototype.testOldAxisSpecInNewSeriesThrows = function() { }; 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) { - assertEquals( - "Using objects for axis specification is not supported inside the 'series' option.", - e); + threw = true; } + + assertTrue(threw); }