<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;
+ if (false) { // Set true if you want warnings to cause failures.
+ 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;