X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fmissing_points.js;h=68a5024c90581b22382e3c48c729506c5d99eac2;hb=48fc47867e9796ad49e105546fbb21c5304039c1;hp=594282c20c674fe112b243185dc216bb5c0e359f;hpb=eed32275fbd3d81b84467853b1781fa4293f3b85;p=dygraphs.git diff --git a/auto_tests/tests/missing_points.js b/auto_tests/tests/missing_points.js index 594282c..68a5024 100644 --- a/auto_tests/tests/missing_points.js +++ b/auto_tests/tests/missing_points.js @@ -27,16 +27,16 @@ var ZERO_TO_FIFTY = [[ 10, 0 ] , [ 20, 50 ]]; var MissingPointsTestCase = TestCase("missing-points"); -var _origFunc = Dygraph.getContext; +MissingPointsTestCase._origFunc = Dygraph.getContext; MissingPointsTestCase.prototype.setUp = function() { document.body.innerHTML = "
"; Dygraph.getContext = function(canvas) { - return new Proxy(_origFunc(canvas)); + return new Proxy(MissingPointsTestCase._origFunc(canvas)); } }; MissingPointsTestCase.prototype.tearDown = function() { - Dygraph.getContext = _origFunc; + Dygraph.getContext = MissingPointsTestCase._origFunc; }; MissingPointsTestCase.prototype.testSeparatedPointsDontDraw = function() { @@ -166,4 +166,4 @@ MissingPointsTestCase.prototype.testConnectSeparatedPointsWithNan = function() { var line = lines[idx]; console.log(line[0].args, line[1].args, line[0].properties.strokeStyle); } -*/ \ No newline at end of file +*/