X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Ffill_step_plot.js;fp=auto_tests%2Ftests%2Ffill_step_plot.js;h=be1302b0c7c68fa733ca833c8c461d9ffb8455cd;hb=319d0361d2e512ed8049dfedffd79254e491201c;hp=f40f8a5dd00895b508122154739d583a22467ce7;hpb=8ab75052fca9261d19222d9e0360b147c240a3b5;p=dygraphs.git diff --git a/auto_tests/tests/fill_step_plot.js b/auto_tests/tests/fill_step_plot.js index f40f8a5..be1302b 100644 --- a/auto_tests/tests/fill_step_plot.js +++ b/auto_tests/tests/fill_step_plot.js @@ -10,17 +10,17 @@ fillStepPlotTestCase.prototype.setUp = function() { document.body.innerHTML = "
"; }; -fillStepPlotTestCase.origFunc = Dygraph.getContext; +var origFunc = Dygraph.getContext; fillStepPlotTestCase.prototype.setUp = function() { document.body.innerHTML = "
"; Dygraph.getContext = function(canvas) { - return new Proxy(fillStepPlotTestCase.origFunc(canvas)); + return new Proxy(origFunc(canvas)); }; }; fillStepPlotTestCase.prototype.tearDown = function() { - Dygraph.getContext = fillStepPlotTestCase.origFunc; + Dygraph.getContext = origFunc; }; @@ -55,4 +55,4 @@ fillStepPlotTestCase.prototype.testFillStepPlotNullValues = function() { // Check if a line is drawn between the previous y and the bottom of the chart CanvasAssertions.assertLineDrawn(htx, xy1, xy2, {}); -}; \ No newline at end of file +};