From: Robert Konigsberg Date: Fri, 16 Nov 2012 00:36:48 +0000 (-0600) Subject: Added actual drawing to test for visual cue. X-Git-Tag: v1.0.0~168^2~8 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=121e43ff208cd35674839ef6820e19d7a337c1b5;p=dygraphs.git Added actual drawing to test for visual cue. --- diff --git a/auto_tests/tests/multiple_axes.js b/auto_tests/tests/multiple_axes.js index 7b52c4c..d08ff50 100644 --- a/auto_tests/tests/multiple_axes.js +++ b/auto_tests/tests/multiple_axes.js @@ -296,11 +296,14 @@ MultipleAxesTestCase.prototype.testDrawPointCallback = function() { var data = MultipleAxesTestCase.getData(); var results = { y : {}, y2 : {}}; - var firstCallback = function(g, seriesName) { + var firstCallback = function(g, seriesName, ctx, canvasx, canvasy, color, radius) { results.y[seriesName] = 1; + Dygraph.Circles.DEFAULT(g, seriesName, ctx, canvasx, canvasy, color, radius); + }; - var secondCallback = function(g, seriesName) { + var secondCallback = function(g, seriesName, ctx, canvasx, canvasy, color, radius) { results.y2[seriesName] = 1; + Dygraph.Circles.TRIANGLE(g, seriesName, ctx, canvasx, canvasy, color, radius); }; g = new Dygraph( @@ -309,6 +312,7 @@ MultipleAxesTestCase.prototype.testDrawPointCallback = function() { { labels: [ 'Date', 'Y1', 'Y2', 'Y3', 'Y4' ], drawPoints : true, + pointSize : 3, 'Y3': { axis: { }