X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fsimple_drawing.js;h=75a6e879f2460375348ef47f580aabe0d67d35c7;hb=4707563ce91e069b58ed6c1be38c8e4ace4a2150;hp=a4acd2830cf619ea452ebc220b10d40a922380a7;hpb=7aabde9615cc6425512e40ec8dc7680ad264a161;p=dygraphs.git diff --git a/auto_tests/tests/simple_drawing.js b/auto_tests/tests/simple_drawing.js index a4acd28..75a6e87 100644 --- a/auto_tests/tests/simple_drawing.js +++ b/auto_tests/tests/simple_drawing.js @@ -27,16 +27,16 @@ var ZERO_TO_FIFTY = [[ 10, 0 ] , [ 20, 50 ]]; var SimpleDrawingTestCase = TestCase("simple-drawing"); -var _origFunc = Dygraph.getContext; +SimpleDrawingTestCase._origFunc = Dygraph.getContext; SimpleDrawingTestCase.prototype.setUp = function() { document.body.innerHTML = "
"; Dygraph.getContext = function(canvas) { - return new Proxy(_origFunc(canvas)); + return new Proxy(SimpleDrawingTestCase._origFunc(canvas)); } }; SimpleDrawingTestCase.prototype.tearDown = function() { - Dygraph.getContext = _origFunc; + Dygraph.getContext = SimpleDrawingTestCase._origFunc; }; SimpleDrawingTestCase.prototype.testDrawSimpleRangePlusOne = function() {