Skip to content

Commit

Permalink
Add test coverage for all colour input methods
Browse files Browse the repository at this point in the history
Fixes less#417
  • Loading branch information
pnorman authored and nebulon42 committed Feb 27, 2016
1 parent fa429b7 commit f6e80bf
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 39 deletions.
12 changes: 12 additions & 0 deletions test/rendering-mss/color_functions.mss
@@ -0,0 +1,12 @@
#world {
name/line-color: green;
hex-3/line-color: #BED;
hex-6/line-color: #DEADBE;
rgb/line-color: rgb(123, 45, 67);
rgba/line-color: rgba(123, 45, 67, 89%);
rgba-d/line-color: rgba(123, 45, 67, .89);
hsl/line-color: hsl(123, 45%, 67%);
hsl-d/line-color: hsl(123, .45, .67);
hsla/line-color: hsla(123, 45%, 67%, 89%);
hsla-d/line-color: hsla(123, 45%, 67%, .89);
}
14 changes: 14 additions & 0 deletions test/rendering-mss/color_functions.xml
@@ -0,0 +1,14 @@
<Style name="style" filter-mode="first">
<Rule>
<LineSymbolizer stroke="#008000" />
<LineSymbolizer stroke="#bbeedd" />
<LineSymbolizer stroke="#deadbe" />
<LineSymbolizer stroke="#7b2d43" />
<LineSymbolizer stroke="rgba(123, 45, 67, 0.89)" />
<LineSymbolizer stroke="rgba(123, 45, 67, 0.89)" />
<LineSymbolizer stroke="#85d189" />
<LineSymbolizer stroke="#85d189" />
<LineSymbolizer stroke="rgba(133, 209, 137, 0.89)" />
<LineSymbolizer stroke="rgba(133, 209, 137, 0.89)" />
</Rule>
</Style>
14 changes: 0 additions & 14 deletions test/rendering/color_variable.mml

This file was deleted.

4 changes: 0 additions & 4 deletions test/rendering/color_variable.mss

This file was deleted.

21 changes: 0 additions & 21 deletions test/rendering/color_variable.result

This file was deleted.

0 comments on commit f6e80bf

Please sign in to comment.