From: Dan Vanderkam Date: Wed, 24 Apr 2013 17:40:12 +0000 (-0400) Subject: Fix syntax errors in docs and update test script to check for them. X-Git-Tag: v1.0.0~34 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=8abf291a1420914ac3db3e8a44e1526a3b1b353a;p=dygraphs.git Fix syntax errors in docs and update test script to check for them. --- diff --git a/dygraph-options-reference.js b/dygraph-options-reference.js index a4e262c..9010385 100644 --- a/dygraph-options-reference.js +++ b/dygraph-options-reference.js @@ -60,7 +60,7 @@ Dygraph.OPTIONS_REFERENCE = // [ "cx" , "center x coordinate" ], [ "cy" , "center y coordinate" ], [ "color" , "series color" ], - [ "pointSize" , "the radius of the image." ] + [ "pointSize" , "the radius of the image." ], [ "idx" , "the row-index of the point in the data."] ], "description": "Draw a custom item when drawPoints is enabled. Default is a small dot matching the series color. This method should constrain drawing to within pointSize pixels from (cx, cy). Also see drawHighlightPointCallback" @@ -130,7 +130,7 @@ Dygraph.OPTIONS_REFERENCE = // [ "cx" , "center x coordinate" ], [ "cy" , "center y coordinate" ], [ "color" , "series color" ], - [ "pointSize" , "the radius of the image." ] + [ "pointSize" , "the radius of the image." ], [ "idx" , "the row-index of the point in the data."] ], "description": "Draw a custom item when a point is highlighted. Default is a small dot matching the series color. This method should constrain drawing to within pointSize pixels from (cx, cy) Also see drawPointCallback" diff --git a/test.sh b/test.sh index 3d3bfbb..f54d6e0 100755 --- a/test.sh +++ b/test.sh @@ -9,4 +9,11 @@ if [ $? != 0 ]; then exit 1 fi +# Don't run tests if the documentation doesn't parse. +./generate-documentation.py > /dev/null +if [ $? != 0 ]; then + echo Failed to generate documentation. Fix this before running tests. + exit 1 +fi + phantomjs phantom-driver.js