Ignore:
Timestamp:
2015-08-10T23:34:22+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #11769 - fix unit test (patch by michael2402)

File:
1 edited

Legend:

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

    r8494 r8657  
    158158    public void testStandardKeyCondition() throws Exception {
    159159        def c1 = (Condition.KeyCondition) getParser("[ highway ]").condition(Condition.Context.PRIMITIVE)
    160         assert c1.matchType == null
     160        assert Condition.KeyMatchType.EQ.equals(c1.matchType)
    161161        assert c1.applies(getEnvironment("highway", "unclassified"))
    162162        assert !c1.applies(getEnvironment("railway", "rail"))
    163163        def c2 = (Condition.KeyCondition) getParser("[\"/slash/\"]").condition(Condition.Context.PRIMITIVE)
    164         assert c2.matchType == null
     164        assert Condition.KeyMatchType.EQ.equals(c2.matchType)
    165165        assert c2.applies(getEnvironment("/slash/", "yes"))
    166166        assert !c2.applies(getEnvironment("\"slash\"", "no"))
Note: See TracChangeset for help on using the changeset viewer.