From 544491b91dfbe5b31380afccd5624367169db1bc Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 25 Sep 2014 14:58:58 -0700 Subject: [PATCH] quoting of enumerations is okay, so let this be okay to carto tests --- test/errorhandling/invalid_value.mss | 1 - test/errorhandling/invalid_value.result | 3 +-- test/rendering-mss/variable-quoting-of-enum.mss | 5 +++++ test/rendering-mss/variable-quoting-of-enum.xml | 5 +++++ 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 test/rendering-mss/variable-quoting-of-enum.mss create mode 100644 test/rendering-mss/variable-quoting-of-enum.xml diff --git a/test/errorhandling/invalid_value.mss b/test/errorhandling/invalid_value.mss index 181174b..eb60b56 100644 --- a/test/errorhandling/invalid_value.mss +++ b/test/errorhandling/invalid_value.mss @@ -1,5 +1,4 @@ #world[zoom=5] { text-face-name: 2; - line-rasterizer: 'full'; text-name: 'foo'; } diff --git a/test/errorhandling/invalid_value.result b/test/errorhandling/invalid_value.result index db5a079..e70d73e 100644 --- a/test/errorhandling/invalid_value.result +++ b/test/errorhandling/invalid_value.result @@ -1,2 +1 @@ -invalid_value.mss:2:2 Invalid value for text-face-name, the type font is expected. 2 (of type float) was given. -invalid_value.mss:3:2 Invalid value for line-rasterizer, the type keyword (options: full, fast) is expected. full (of type string) was given. \ No newline at end of file +invalid_value.mss:2:2 Invalid value for text-face-name, the type font is expected. 2 (of type float) was given. \ No newline at end of file diff --git a/test/rendering-mss/variable-quoting-of-enum.mss b/test/rendering-mss/variable-quoting-of-enum.mss new file mode 100644 index 0000000..e7655aa --- /dev/null +++ b/test/rendering-mss/variable-quoting-of-enum.mss @@ -0,0 +1,5 @@ +#world { + line-rasterizer: 'fast'; + // carto should collapse to one + line-rasterizer: fast; +} diff --git a/test/rendering-mss/variable-quoting-of-enum.xml b/test/rendering-mss/variable-quoting-of-enum.xml new file mode 100644 index 0000000..bc2b811 --- /dev/null +++ b/test/rendering-mss/variable-quoting-of-enum.xml @@ -0,0 +1,5 @@ +