From db3b5c1735216fecc6721fc271c6d2dd922adbd7 Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sun, 27 Sep 2015 19:40:38 -0400 Subject: [PATCH] Fix broken helper test --- test/core.helpers.tests.js | 74 ++++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 34 deletions(-) diff --git a/test/core.helpers.tests.js b/test/core.helpers.tests.js index d832f0e25..4ceb1b2d0 100644 --- a/test/core.helpers.tests.js +++ b/test/core.helpers.tests.js @@ -210,18 +210,19 @@ describe('Core helper tests', function() { type: 'linear', axisProp: 456 }, { - type: 'linear', display: true, - position: "right", + gridLines: { - show: true, color: "rgba(0, 0, 0, 0.1)", - lineWidth: 1, drawOnChartArea: true, - drawTicks: true, - zeroLineWidth: 1, + drawTicks: true, // draw ticks extending towards the label + lineWidth: 1, + offsetGridLines: false, + show: true, zeroLineColor: "rgba(0,0,0,0.25)", + zeroLineWidth: 1, }, + position: "right", scaleLabel: { fontColor: '#666', fontFamily: 'Helvetica Neue', @@ -230,32 +231,35 @@ describe('Core helper tests', function() { labelString: '', show: false, }, - reverse: false, - beginAtZero: false, - override: null, - labels: { - show: true, - mirror: false, - padding: 10, - template: "<%=value.toLocaleString()%>", + ticks: { + beginAtZero: false, + fontColor: "#666", + fontFamily: "Helvetica Neue", fontSize: 12, fontStyle: "normal", - fontColor: "#666", - fontFamily: "Helvetica Neue" - } + maxRotation: 90, + minRotation: 20, + mirror: false, + padding: 10, + reverse: false, + show: true, + template: "<%=value%>" + }, + type: 'linear' }, { - type: 'linear', display: true, - position: "left", + gridLines: { - show: true, color: "rgba(0, 0, 0, 0.1)", - lineWidth: 1, drawOnChartArea: true, - drawTicks: true, - zeroLineWidth: 1, + drawTicks: true, // draw ticks extending towards the label + lineWidth: 1, + offsetGridLines: false, + show: true, zeroLineColor: "rgba(0,0,0,0.25)", + zeroLineWidth: 1, }, + position: "left", scaleLabel: { fontColor: '#666', fontFamily: 'Helvetica Neue', @@ -264,19 +268,21 @@ describe('Core helper tests', function() { labelString: '', show: false, }, - reverse: false, - beginAtZero: false, - override: null, - labels: { - show: true, - mirror: false, - padding: 10, - template: "<%=value.toLocaleString()%>", + ticks: { + beginAtZero: false, + fontColor: "#666", + fontFamily: "Helvetica Neue", fontSize: 12, fontStyle: "normal", - fontColor: "#666", - fontFamily: "Helvetica Neue" - } + maxRotation: 90, + minRotation: 20, + mirror: false, + padding: 10, + reverse: false, + show: true, + template: "<%=value%>" + }, + type: 'linear' }] } }); -- 2.47.3