Changeset 8657 in josm for trunk/test/unit
- Timestamp:
 - 2015-08-10T23:34:22+02:00 (10 years ago)
 - File:
 - 
      
- 1 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTest.groovy
r8494 r8657 158 158 public void testStandardKeyCondition() throws Exception { 159 159 def c1 = (Condition.KeyCondition) getParser("[ highway ]").condition(Condition.Context.PRIMITIVE) 160 assert c1.matchType == null160 assert Condition.KeyMatchType.EQ.equals(c1.matchType) 161 161 assert c1.applies(getEnvironment("highway", "unclassified")) 162 162 assert !c1.applies(getEnvironment("railway", "rail")) 163 163 def c2 = (Condition.KeyCondition) getParser("[\"/slash/\"]").condition(Condition.Context.PRIMITIVE) 164 assert c2.matchType == null164 assert Condition.KeyMatchType.EQ.equals(c2.matchType) 165 165 assert c2.applies(getEnvironment("/slash/", "yes")) 166 166 assert !c2.applies(getEnvironment("\"slash\"", "no"))  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  