X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Fmisc%2Flocal.js;h=4b1ea402a059ff63a58fb00a157231601aefcdf5;hb=8a68db7d96431554122d0ffc0356cc6aa2e6b822;hp=05927a5bb4c8e1b9eab8ec20f7421c026e7e32dc;hpb=ee60939f4e2238cbb64ebbe7acdc27195c149cfb;p=dygraphs.git diff --git a/auto_tests/misc/local.js b/auto_tests/misc/local.js index 05927a5..4b1ea40 100644 --- a/auto_tests/misc/local.js +++ b/auto_tests/misc/local.js @@ -24,12 +24,12 @@ var DygraphsLocalTester = function() { * In some cases we will still allow warnings to be warnings, however. */ DygraphsLocalTester.prototype.overrideWarn = function() { - // save Dygraph.warn so we can catch warnings. - var originalDygraphWarn = Dygraph.warn; - Dygraph.warn = function(msg) { - // This warning is still + // save console.warn so we can catch warnings. + var originalWarn = console.warn; + console.warn = function(msg) { + // This warning is pervasive enough that we'll let it slide (for now). if (msg == "Using default labels. Set labels explicitly via 'labels' in the options parameter") { - originalDygraphWarn(msg); + originalWarn(msg); return; } throw 'Warnings not permitted: ' + msg;