Changeset 7066 in josm for trunk/test


Ignore:
Timestamp:
2014-05-05T18:41:45+02:00 (6 years ago)
Author:
Don-vip
Message:

see #9691 - fix MapCSSParserTest broken by r7064. MapCSSTagCheckerTest is still broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTest.groovy

    r6927 r7066  
    11package org.openstreetmap.josm.gui.mappaint.mapcss
     2
     3import java.awt.Color
    24
    35import org.junit.Before
     
    1416import org.openstreetmap.josm.gui.mappaint.mapcss.parsergen.MapCSSParser
    1517import org.openstreetmap.josm.tools.ColorHelper
    16 
    17 import java.awt.Color
    1818
    1919class MapCSSParserTest {
     
    235235    public void testColorNameTicket9191() throws Exception {
    236236        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)
    238238        def expected = new Color(0x88DD22)
    239239        assert e.getCascade(Environment.DEFAULT_LAYER).get("color") == expected
     
    244244    public void testColorNameTicket9191Alpha() throws Exception {
    245245        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)
    247247        def expected = new Color(0x12, 0x34, 0x56, 0x78)
    248248        assert e.getCascade(Environment.DEFAULT_LAYER).get("color") == expected
Note: See TracChangeset for help on using the changeset viewer.