From: Dan Vanderkam Date: Wed, 8 May 2013 23:12:48 +0000 (-0700) Subject: Fix failing test X-Git-Tag: v1.0.0~30 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=3060c38bf6992ed65a4b122f267010200ed75f4d;p=dygraphs.git Fix failing test --- diff --git a/auto_tests/misc/local.html b/auto_tests/misc/local.html index fb99a26..f34d18b 100644 --- a/auto_tests/misc/local.html +++ b/auto_tests/misc/local.html @@ -35,7 +35,6 @@ - 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); }