X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fto_dom_coords.js;h=dae4f44c66cd35b7618054d92d14f799d20cc2c1;hb=61d7c1bca02e679932990667b60ec07196bea21f;hp=3def1effe89588a9e10db0240d5793e962ec3aab;hpb=20d4f5375fbe40b14ae4430fb04e7a5770ba0711;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.