X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=auto_tests%2Ftests%2Fcustom_bars.js;h=2169ade3b8a11277ea4bc6dedbf30e1e7f557950;hb=4707563ce91e069b58ed6c1be38c8e4ace4a2150;hp=493e86c533fd1b826559a0c8c5be34b4820b589b;hpb=e4cee287656a7dc72c1883748c493b0db682ef16;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.