From 50a27c213c1ebff1ca5d2f5eda7565481e979a04 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 9 Aug 2013 15:37:06 +0200 Subject: [PATCH 1/2] Add test/rendering-mss/npm-debug.log to .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index acc5107..117929f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /node_modules .DS_Store test/rendering/layers/ -test/rendering/cache/ \ No newline at end of file +test/rendering/cache/ +test/rendering-mss/npm-debug.log \ No newline at end of file From 7a3b659d4eeaa8e3dfe46581b371847b96f0466c Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 9 Aug 2013 15:39:12 +0200 Subject: [PATCH 2/2] More tests for attachement (cf #245) --- test/rendering-mss/basic_attachment_internal.mss | 9 +++++++++ test/rendering-mss/basic_attachment_internal.xml | 10 ++++++++++ .../basic_attachment_internal_before.mss | 9 +++++++++ .../basic_attachment_internal_before.xml | 10 ++++++++++ ...basic_attachment_internal_before_and_after.mss | 12 ++++++++++++ ...basic_attachment_internal_before_and_after.xml | 15 +++++++++++++++ .../basic_attachment_internal_double.mss | 10 ++++++++++ .../basic_attachment_internal_double.xml | 11 +++++++++++ .../basic_attachment_internal_with_label.mss | 11 +++++++++++ .../basic_attachment_internal_with_label.xml | 10 ++++++++++ 10 files changed, 107 insertions(+) create mode 100644 test/rendering-mss/basic_attachment_internal.mss create mode 100644 test/rendering-mss/basic_attachment_internal.xml create mode 100644 test/rendering-mss/basic_attachment_internal_before.mss create mode 100644 test/rendering-mss/basic_attachment_internal_before.xml create mode 100644 test/rendering-mss/basic_attachment_internal_before_and_after.mss create mode 100644 test/rendering-mss/basic_attachment_internal_before_and_after.xml create mode 100644 test/rendering-mss/basic_attachment_internal_double.mss create mode 100644 test/rendering-mss/basic_attachment_internal_double.xml create mode 100644 test/rendering-mss/basic_attachment_internal_with_label.mss create mode 100644 test/rendering-mss/basic_attachment_internal_with_label.xml diff --git a/test/rendering-mss/basic_attachment_internal.mss b/test/rendering-mss/basic_attachment_internal.mss new file mode 100644 index 0000000..ca0c38b --- /dev/null +++ b/test/rendering-mss/basic_attachment_internal.mss @@ -0,0 +1,9 @@ +#layer { + // default attachement comes before + line-color: chartreuse; + line-width: 10; + ::inline { + line-color: lime; + line-width: 5; + } +} \ No newline at end of file diff --git a/test/rendering-mss/basic_attachment_internal.xml b/test/rendering-mss/basic_attachment_internal.xml new file mode 100644 index 0000000..6abf66d --- /dev/null +++ b/test/rendering-mss/basic_attachment_internal.xml @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/test/rendering-mss/basic_attachment_internal_before.mss b/test/rendering-mss/basic_attachment_internal_before.mss new file mode 100644 index 0000000..3aa1911 --- /dev/null +++ b/test/rendering-mss/basic_attachment_internal_before.mss @@ -0,0 +1,9 @@ +#layer { + ::outline { + line-color: aliceblue; + line-width: 5; + } + // default attachement comes after + line-color: orchid; + line-width: 10; +} \ No newline at end of file diff --git a/test/rendering-mss/basic_attachment_internal_before.xml b/test/rendering-mss/basic_attachment_internal_before.xml new file mode 100644 index 0000000..b14446d --- /dev/null +++ b/test/rendering-mss/basic_attachment_internal_before.xml @@ -0,0 +1,10 @@ + + \ No newline at end of file diff --git a/test/rendering-mss/basic_attachment_internal_before_and_after.mss b/test/rendering-mss/basic_attachment_internal_before_and_after.mss new file mode 100644 index 0000000..0734f91 --- /dev/null +++ b/test/rendering-mss/basic_attachment_internal_before_and_after.mss @@ -0,0 +1,12 @@ +#layer { + ::outline { + line-color: salmon; + line-width: 10; + } + line-color: coral; + line-width: 5; + ::inline { + line-color: moccasin; + line-width: 1; + } +} \ No newline at end of file diff --git a/test/rendering-mss/basic_attachment_internal_before_and_after.xml b/test/rendering-mss/basic_attachment_internal_before_and_after.xml new file mode 100644 index 0000000..dac38ef --- /dev/null +++ b/test/rendering-mss/basic_attachment_internal_before_and_after.xml @@ -0,0 +1,15 @@ + + + \ No newline at end of file diff --git a/test/rendering-mss/basic_attachment_internal_double.mss b/test/rendering-mss/basic_attachment_internal_double.mss new file mode 100644 index 0000000..618c224 --- /dev/null +++ b/test/rendering-mss/basic_attachment_internal_double.mss @@ -0,0 +1,10 @@ +#layer { + ::outline { + line-color: whitesmoke; + line-width: 10; + } + ::inline { + line-color: mintcream; + line-width: 5; + } +} \ No newline at end of file diff --git a/test/rendering-mss/basic_attachment_internal_double.xml b/test/rendering-mss/basic_attachment_internal_double.xml new file mode 100644 index 0000000..d388f73 --- /dev/null +++ b/test/rendering-mss/basic_attachment_internal_double.xml @@ -0,0 +1,11 @@ + + + \ No newline at end of file diff --git a/test/rendering-mss/basic_attachment_internal_with_label.mss b/test/rendering-mss/basic_attachment_internal_with_label.mss new file mode 100644 index 0000000..842ee10 --- /dev/null +++ b/test/rendering-mss/basic_attachment_internal_with_label.mss @@ -0,0 +1,11 @@ +#places { + marker-width: 10; + marker-allow-overlap: true; + marker-fill: peru; + ::label { + text-face-name: "DejaVu Sans Book"; + text-name: "'1'"; + text-fill: tomato; + text-allow-overlap: true; + } +} diff --git a/test/rendering-mss/basic_attachment_internal_with_label.xml b/test/rendering-mss/basic_attachment_internal_with_label.xml new file mode 100644 index 0000000..59f75f1 --- /dev/null +++ b/test/rendering-mss/basic_attachment_internal_with_label.xml @@ -0,0 +1,10 @@ + + \ No newline at end of file