Changeset 7124 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2014-05-14T13:47:05+02:00 (11 years ago)
Author:
simon04
Message:

MapCSS parsing: warn on unknown base selectors

File:
1 edited

Legend:

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

    r7123 r7124  
    310310        assert !s1.matches(new Environment().withPrimitive(w))
    311311    }
     312
     313    @Test
     314    public void testInvalidBaseSelector() throws Exception {
     315        def css = new MapCSSStyleSource("invalid_base[key=value] {}")
     316        css.loadStyleSource()
     317        assert !css.getErrors().isEmpty()
     318        assert css.getErrors().iterator().next().toString().contains("Unknown MapCSS base selector invalid_base")
     319    }
    312320}
Note: See TracChangeset for help on using the changeset viewer.