Add test case for bug #2037.

This commit is contained in:
Hermann Kraus 2013-10-11 22:24:08 +02:00
parent 6a7e0ec072
commit 061397dce3
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<Map background-color="white" srs="+proj=latlong +datum=WGS84" font-directory="/usr/share/fonts/truetype/tlwg/">
<Layer name="layer" srs="+proj=latlong +datum=WGS84">
<StyleName>My Style</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="file">../data/points.csv</Parameter>
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<PointSymbolizer/>
</Rule>
<Rule>
<Filter>[nr] = 5</Filter>
<TextSymbolizer wrap-width="20" face-name="DejaVu Sans Book" size="9" allow-overlap="true">"xxxxxx&#10;xxxxxx"</TextSymbolizer>
</Rule>
</Style>
</Map>

View file

@ -79,6 +79,7 @@ text_tests = [
{'name': "text-bug1820-1", 'sizes':[(600, 300)], 'bbox':default_text_box},
{'name': "text-bug1820+0", 'sizes':[(600, 300)], 'bbox':default_text_box},
{'name': "text-bug1820+1", 'sizes':[(600, 300)], 'bbox':default_text_box},
{'name': "text-bug2037", 'sizes':[(800, 300)], 'bbox':default_text_box},
{'name': "text-expressionformat-color", 'sizes':[(800, 100)], 'bbox':default_text_box},
{'name': "text-halign", 'sizes': [(800,800)], 'bbox':default_text_box},
# Disabled by default as the required font isn't shipped with mapnik