X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fcustom_bars.js;h=2169ade3b8a11277ea4bc6dedbf30e1e7f557950;hb=abc8c570a4aac8be7ff4fb266e6e410b768277be;hp=493e86c533fd1b826559a0c8c5be34b4820b589b;hpb=0a7181dd7099f3959e7b626f10f2dc9825d014cc;p=dygraphs.git diff --git a/auto_tests/tests/custom_bars.js b/auto_tests/tests/custom_bars.js index 493e86c..2169ade 100644 --- a/auto_tests/tests/custom_bars.js +++ b/auto_tests/tests/custom_bars.js @@ -6,16 +6,16 @@ */ var CustomBarsTestCase = TestCase("custom-bars"); -var _origFunc = Dygraph.getContext; +CustomBarsTestCase._origFunc = Dygraph.getContext; CustomBarsTestCase.prototype.setUp = function() { document.body.innerHTML = "
"; Dygraph.getContext = function(canvas) { - return new Proxy(_origFunc(canvas)); + return new Proxy(CustomBarsTestCase._origFunc(canvas)); } }; CustomBarsTestCase.prototype.tearDown = function() { - Dygraph.getContext = _origFunc; + Dygraph.getContext = CustomBarsTestCase._origFunc; }; // This test used to reliably produce an infinite loop.