Changeset 9279 in josm for trunk/test/unit/org/openstreetmap/josm/gui/mappaint/MapCSSWithExtendedTextDirectivesTest.groovy
- Timestamp:
- 2016-01-03T16:29:25+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/MapCSSWithExtendedTextDirectivesTest.groovy
r7938 r9279 6 6 import org.openstreetmap.josm.JOSMFixture 7 7 import org.openstreetmap.josm.data.osm.Node 8 import org.openstreetmap.josm.gui.mappaint.LabelCompositionStrategy.DeriveLabelFromNameTagsCompositionStrategy9 import org.openstreetmap.josm.gui.mappaint.LabelCompositionStrategy.TagLookupCompositionStrategy10 8 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles.TagKeyReference 9 import org.openstreetmap.josm.gui.mappaint.styleelement.TextLabel 10 import org.openstreetmap.josm.gui.mappaint.styleelement.LabelCompositionStrategy.DeriveLabelFromNameTagsCompositionStrategy 11 import org.openstreetmap.josm.gui.mappaint.styleelement.LabelCompositionStrategy.TagLookupCompositionStrategy 11 12 12 13 class MapCSSWithExtendedTextDirectivesTest { … … 26 27 Environment env = new Environment(osm, mc, "default", null) 27 28 28 Text Element te = TextElement.create(env, Color.WHITE, false /* no default annotate */)29 TextLabel te = TextLabel.create(env, Color.WHITE, false /* no default annotate */) 29 30 assert te.labelCompositionStrategy != null 30 31 assert te.labelCompositionStrategy instanceof DeriveLabelFromNameTagsCompositionStrategy … … 40 41 Environment env = new Environment(osm, mc, "default", null) 41 42 42 Text Element te = TextElement.create(env, Color.WHITE, false /* no default annotate */)43 TextLabel te = TextLabel.create(env, Color.WHITE, false /* no default annotate */) 43 44 assert te.labelCompositionStrategy != null 44 45 assert te.labelCompositionStrategy instanceof TagLookupCompositionStrategy … … 52 53 Environment env = new Environment(osm, mc, "default", null) 53 54 54 Text Element te = TextElement.create(env, Color.WHITE, false /* no default annotate */)55 TextLabel te = TextLabel.create(env, Color.WHITE, false /* no default annotate */) 55 56 assert te == null 56 57 }
Note:
See TracChangeset
for help on using the changeset viewer.