X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fgrid_per_axis.js;h=3173cf3d617736ee6a705616d84d81a33fd1bed9;hb=319d0361d2e512ed8049dfedffd79254e491201c;hp=cac2534acf6c73baf6a6567237c587160791c950;hpb=192d58e7c9fab1ae32da4a2dac723955f1639a54;p=dygraphs.git diff --git a/auto_tests/tests/grid_per_axis.js b/auto_tests/tests/grid_per_axis.js index cac2534..3173cf3 100644 --- a/auto_tests/tests/grid_per_axis.js +++ b/auto_tests/tests/grid_per_axis.js @@ -10,17 +10,17 @@ GridPerAxisTestCase.prototype.setUp = function() { document.body.innerHTML = "
"; }; -GridPerAxisTestCase.origFunc = Dygraph.getContext; +var origFunc = Dygraph.getContext; GridPerAxisTestCase.prototype.setUp = function() { document.body.innerHTML = "
"; Dygraph.getContext = function(canvas) { - return new Proxy(GridPerAxisTestCase.origFunc(canvas)); + return new Proxy(origFunc(canvas)); }; }; GridPerAxisTestCase.prototype.tearDown = function() { - Dygraph.getContext = GridPerAxisTestCase.origFunc; + Dygraph.getContext = origFunc; }; GridPerAxisTestCase.prototype.testIndependentGrids = function() { @@ -257,9 +257,6 @@ GridPerAxisTestCase.prototype.testGridLinePattern = function() { width : 120, height : 320, errorBars : false, - drawXGrid : false, - drawXAxis : false, - drawYAxis : false, labels : [ "X", "Left", "Right" ], colors : [ "rgba(0,0,0,0)", "rgba(0,0,0,0)" ], series : { @@ -271,7 +268,12 @@ GridPerAxisTestCase.prototype.testGridLinePattern = function() { } }, axes : { + x : { + drawGrid: false, + drawAxis: false, + }, y : { + drawAxis : false, gridLineColor : "#0000ff", gridLinePattern : [ 10, 10 ] }