Fix failing test
authorDan Vanderkam <danvdk@gmail.com>
Wed, 8 May 2013 23:12:48 +0000 (16:12 -0700)
committerDan Vanderkam <danvdk@gmail.com>
Wed, 8 May 2013 23:12:48 +0000 (16:12 -0700)
auto_tests/misc/local.html
auto_tests/tests/per_series.js

index fb99a26..f34d18b 100644 (file)
@@ -35,7 +35,6 @@
   <script type="text/javascript" src="../tests/multi_csv.js"></script>
   <script type="text/javascript" src="../tests/multiple_axes.js"></script>
   <script type="text/javascript" src="../tests/multiple_axes-old.js"></script>
-  <script type="text/javascript" src="../tests/numeric-labels.js"></script>
   <script type="text/javascript" src="../tests/no_hours.js"></script>
   <script type="text/javascript" src="../tests/parser.js"></script>
   <script type="text/javascript" src="../tests/pathological_cases.js"></script>
index ab52add..1a04496 100644 (file)
@@ -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);
 }