This commit is contained in:
Dane Springmeyer 2014-04-10 22:03:09 -04:00
parent fb06bb4bb1
commit cfab4f6369
5 changed files with 18 additions and 2 deletions

View File

@ -12,7 +12,7 @@ describe('Quoted', function() {
it('should produce normal output', function() {
var f = new tree.Quoted("Tom's & \"<quoted>\"");
assert.ok(f);
assert.equal(f.toString(), "Tom's & \"<quoted>\"");
assert.equal(f.toString(), "Tom's &amp; \"<quoted>\"");
});
it('should produce xml-friendly output', function() {
var f = new tree.Quoted("Tom's & \"<quoted>\"");

View File

@ -0,0 +1,4 @@
#layer["Hello&Goodbye"="yes"] {
text-name: [name];
text-face-name: "El&Font Bubble Regular";
}

View File

@ -0,0 +1,6 @@
<Style name="style" filter-mode="first">
<Rule>
<Filter>([Hello&amp;Goodbye] = 'yes')</Filter>
<TextSymbolizer face-name="El&amp;Font Bubble Regular" ><![CDATA[[name]]]></TextSymbolizer>
</Rule>
</Style>

View File

@ -2,4 +2,4 @@
<Rule>
<TextSymbolizer face-name="El&amp;Font Bubble Regular" ><![CDATA[[name]]]></TextSymbolizer>
</Rule>
</Style>
</Style>

View File

@ -0,0 +1,6 @@
<Style name="style" filter-mode="first">
<Rule>
<Filter>([zoomy] &gt; 2)</Filter>
<PolygonSymbolizer fill="#ff0000" />
</Rule>
</Style>