From 90fbe75213e3028891872620c020b0dc64f7fed0 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Wed, 7 Dec 2011 22:58:51 -0500 Subject: [PATCH] Adding quick test case for not-enough-args error --- test/errorhandling/notenoughargs.mml | 15 +++++++++++++++ test/errorhandling/notenoughargs.mss | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 test/errorhandling/notenoughargs.mml create mode 100644 test/errorhandling/notenoughargs.mss diff --git a/test/errorhandling/notenoughargs.mml b/test/errorhandling/notenoughargs.mml new file mode 100644 index 0000000..a3bf7e5 --- /dev/null +++ b/test/errorhandling/notenoughargs.mml @@ -0,0 +1,15 @@ +{ + "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over", + "Stylesheet": [ + "notenoughargs.mss" + ], + "Layer": [{ + "id": "world", + "name": "world", + "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over", + "Datasource": { + "file": "http://tilemill-data.s3.amazonaws.com/test_data/shape_demo.zip", + "type": "shape" + } + }] +} diff --git a/test/errorhandling/notenoughargs.mss b/test/errorhandling/notenoughargs.mss new file mode 100644 index 0000000..e123edb --- /dev/null +++ b/test/errorhandling/notenoughargs.mss @@ -0,0 +1,8 @@ +#world { + ::outline { + line-color: darken(#85c5d3); + line-width: 2; + line-join: round; + } + polygon-fill: #fff; +}