X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fto_dom_coords.js;h=dae4f44c66cd35b7618054d92d14f799d20cc2c1;hb=c1c42651dd140ecb0460cfcff736aceb117f9cc6;hp=3def1effe89588a9e10db0240d5793e962ec3aab;hpb=009e949fc89eae685ef50e47e96ec86f26808c49;p=dygraphs.git diff --git a/auto_tests/tests/to_dom_coords.js b/auto_tests/tests/to_dom_coords.js index 3def1ef..dae4f44 100644 --- a/auto_tests/tests/to_dom_coords.js +++ b/auto_tests/tests/to_dom_coords.js @@ -6,16 +6,16 @@ var ToDomCoordsTestCase = TestCase("to-dom-coords"); -var _origFunc = Dygraph.getContext; +ToDomCoordsTestCase._origFunc = Dygraph.getContext; ToDomCoordsTestCase.prototype.setUp = function() { document.body.innerHTML = "
"; Dygraph.getContext = function(canvas) { - return new Proxy(_origFunc(canvas)); + return new Proxy(ToDomCoordsTestCase._origFunc(canvas)); } }; ToDomCoordsTestCase.prototype.tearDown = function() { - Dygraph.getContext = _origFunc; + Dygraph.getContext = ToDomCoordsTestCase._origFunc; }; // Checks that toDomCoords and toDataCoords are inverses of one another.