Changeset 7066 in josm for trunk/test/unit
- Timestamp:
- 2014-05-05T18:41:45+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTest.groovy
r6927 r7066 1 1 package org.openstreetmap.josm.gui.mappaint.mapcss 2 3 import java.awt.Color 2 4 3 5 import org.junit.Before … … 14 16 import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser 15 17 import org.openstreetmap.josm.tools.ColorHelper 16 17 import java.awt.Color18 18 19 19 class MapCSSParserTest { … … 235 235 public void testColorNameTicket9191() throws Exception { 236 236 def e = new Environment(null, new MultiCascade(), Environment.DEFAULT_LAYER, null) 237 getParser("{color: testcolour1#88DD22}").declaration(). get(0).execute(e)237 getParser("{color: testcolour1#88DD22}").declaration().instructions.get(0).execute(e) 238 238 def expected = new Color(0x88DD22) 239 239 assert e.getCascade(Environment.DEFAULT_LAYER).get("color") == expected … … 244 244 public void testColorNameTicket9191Alpha() throws Exception { 245 245 def e = new Environment(null, new MultiCascade(), Environment.DEFAULT_LAYER, null) 246 getParser("{color: testcolour2#12345678}").declaration(). get(0).execute(e)246 getParser("{color: testcolour2#12345678}").declaration().instructions.get(0).execute(e) 247 247 def expected = new Color(0x12, 0x34, 0x56, 0x78) 248 248 assert e.getCascade(Environment.DEFAULT_LAYER).get("color") == expected
Note:
See TracChangeset
for help on using the changeset viewer.