From aa0883073c0c3505ce145c87be4089f17af9ee72 Mon Sep 17 00:00:00 2001 From: Michael Zinsmaier Date: Sun, 26 Oct 2014 19:57:30 +0100 Subject: [PATCH] Added new auto parameter testbox to all tests --- curvedLines.js | 4 +- tests/Issue18.htm | 193 +++++++++------------------ tests/Issue19.htm | 45 ++++--- tests/_TestSetup.css | 12 ++ tests/_TestSetup.js | 146 +++++++++++++++++++++ tests/testDate.htm | 202 ++++++++++++++--------------- tests/testExample.htm | 63 +++++++-- tests/testExampleFillMultiAxis.htm | 84 +++++++++--- tests/testExampleFit.htm | 54 +++++--- tests/testSaddlePoint.htm | 63 +++++++-- tests/testSinglePoint.htm | 47 ++++--- tests/testThreshold.htm | 115 +++++++++++----- tests/testTooltip.htm | 52 +++++--- tests/testZeroDrop.htm | 64 ++++++--- 14 files changed, 739 insertions(+), 405 deletions(-) create mode 100644 tests/_TestSetup.css create mode 100644 tests/_TestSetup.js diff --git a/curvedLines.js b/curvedLines.js index 83696fd..a251e23 100644 --- a/curvedLines.js +++ b/curvedLines.js @@ -178,7 +178,7 @@ function calculateLegacyCurvePoints(datapoints, curvedLinesOptions, yPos) { var points = datapoints.points, ps = datapoints.pointsize; - var num = curvedLinesOptions.curvePointFactor * (points.length / ps); + var num = Number(curvedLinesOptions.curvePointFactor) * (points.length / ps); var xdata = new Array; var ydata = new Array; @@ -200,7 +200,7 @@ //x range / (estimated pixel length of placeholder * factor) } else { //use user defined value - fpDist = curvedLinesOptions.fitPointDist; + fpDist = Number(curvedLinesOptions.fitPointDist); } for (var i = 0; i < points.length; i += ps) { diff --git a/tests/Issue18.htm b/tests/Issue18.htm index 7df6436..0667a07 100644 --- a/tests/Issue18.htm +++ b/tests/Issue18.htm @@ -2,163 +2,90 @@ CurvedLines Plugin for flot - + + + +
+
- \ No newline at end of file diff --git a/tests/Issue19.htm b/tests/Issue19.htm index c255932..ec10281 100644 --- a/tests/Issue19.htm +++ b/tests/Issue19.htm @@ -9,17 +9,20 @@ + + -
-
-
-
+ +
+
+
+ - - - - - - -
-
- - - - - - - + + + + CurvedLines Plugin for flot + + + + + + + + + + +
+
+
+ + +
\ No newline at end of file diff --git a/tests/testExample.htm b/tests/testExample.htm index 1c8f1ad..242516d 100644 --- a/tests/testExample.htm +++ b/tests/testExample.htm @@ -2,29 +2,64 @@ CurvedLines Plugin for flot - + + + -
+
+
diff --git a/tests/testExampleFillMultiAxis.htm b/tests/testExampleFillMultiAxis.htm index e276b03..9ce7a0c 100644 --- a/tests/testExampleFillMultiAxis.htm +++ b/tests/testExampleFillMultiAxis.htm @@ -2,35 +2,81 @@ CurvedLines Plugin for flot - + + + -
+
+
- - \ No newline at end of file diff --git a/tests/testExampleFit.htm b/tests/testExampleFit.htm index 59bed2d..d0aef5e 100644 --- a/tests/testExampleFit.htm +++ b/tests/testExampleFit.htm @@ -2,18 +2,24 @@ CurvedLines Plugin for flot - + + + + -
+
+
diff --git a/tests/testSaddlePoint.htm b/tests/testSaddlePoint.htm index cd5dd50..d70c30e 100644 --- a/tests/testSaddlePoint.htm +++ b/tests/testSaddlePoint.htm @@ -2,30 +2,65 @@ CurvedLines Plugin for flot - + + + -
+
+
diff --git a/tests/testSinglePoint.htm b/tests/testSinglePoint.htm index a38e216..936a086 100644 --- a/tests/testSinglePoint.htm +++ b/tests/testSinglePoint.htm @@ -6,12 +6,19 @@ + + +
+
diff --git a/tests/testThreshold.htm b/tests/testThreshold.htm index fbadfee..128331c 100644 --- a/tests/testThreshold.htm +++ b/tests/testThreshold.htm @@ -2,54 +2,101 @@ CurvedLines Plugin for flot - + + + -
+
+
diff --git a/tests/testTooltip.htm b/tests/testTooltip.htm index a71e2cf..feeecc2 100644 --- a/tests/testTooltip.htm +++ b/tests/testTooltip.htm @@ -2,19 +2,21 @@ CurvedLines Plugin for flot - - + + +
+
+ + + + -
+
+