Whoops, remove labels.js from auto_tests/misc/local.html
[dygraphs.git] / auto_tests / misc / local.html
index b7d3a0d..65dc8ab 100644 (file)
@@ -16,6 +16,7 @@
   <script type="text/javascript" src="../tests/CanvasAssertions.js"></script>
   <script type="text/javascript" src="../tests/DygraphOps.js"></script>
   <script type="text/javascript" src="../tests/PixelSampler.js"></script>
+  <script type="text/javascript" src="../tests/Util.js"></script>
 
   <!-- Scripts for automated tests -->
   <script type="text/javascript" src="../tests/annotations.js"></script>
   }
 </style>
   <script type="text/javascript">
+
+  // save Dygraph.warn so we can catch warnings.
+  // Disabled for now.
+  // var originalDygraphWarn = Dygraph.warn;
+  // Dygraph.warn = function(msg) {
+  //   if (msg == "Using default labels. Set labels explicitly via 'labels' in the options parameter") {
+  //     originalDygraphWarn(msg);
+  //     return;
+  //   }
+  //   throw "Warnings not permitted: " + msg;
+  // }
+  // Dygraph.prototype.warn = Dygraph.warn;
+
   var tc = null; // Selected test case
   var name = null;