Changeset 6561 in josm for trunk/test/unit/org/openstreetmap/josm
- Timestamp:
- 2013-12-29T12:43:55+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTest.groovy
r6560 r6561 10 10 import org.openstreetmap.josm.gui.mappaint.MultiCascade 11 11 import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser 12 import org.openstreetmap.josm.tools.Utils 13 14 import java.awt.Color 12 15 13 16 class MapCSSParserTest { … … 60 63 def css = new MapCSSStyleSource("") 61 64 getParser("" + 62 "way[highway=footway] { set path; color: #FF6644; width: 2; }\n" +65 "way[highway=footway] { set .path; color: #FF6644; width: 2; }\n" + 63 66 "way[highway=path] { set path; color: brown; width: 2; }\n" + 64 67 "way[\"set\"=escape] { }\n" + … … 75 78 assert "orange".equals(mc2.getCascade("default").get("color", null, String.class)) 76 79 assert mc2.getCascade("default").get("text-color", null, String.class) == null 80 def mc3 = new MultiCascade() 81 css.apply(mc3, getPrimitive("highway", "footway"), 1, null, false); 82 assert Utils.hexToColor("#FF6644").equals(mc3.getCascade("default").get("color", null, Color.class)) 77 83 } 78 84
Note:
See TracChangeset
for help on using the changeset viewer.