Changeset 17800 in josm for trunk/test/unit/org/openstreetmap/josm/gui/mappaint
- Timestamp:
- 2021-04-19T21:45:11+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTest.java
r17780 r17800 79 79 @Test 80 80 void testClassCondition() throws Exception { 81 List<Condition> conditions = ((Selector.GeneralSelector)getParser("way[name=X].highway:closed").selector()).conds;81 List<Condition> conditions = getParser("way[name=X].highway:closed").selector().getConditions(); 82 82 assertTrue(conditions.get(0) instanceof SimpleKeyValueCondition); 83 83 assertTrue(conditions.get(0).applies(getEnvironment("name", "X"))); … … 89 89 @Test 90 90 void testPseudoClassCondition() throws Exception { 91 Condition c0 = ((Selector.GeneralSelector)getParser("way:area-style").selector()).conds.get(0);92 Condition c1 = ((Selector.GeneralSelector)getParser("way!:area-style").selector()).conds.get(0);93 Condition c2 = ((Selector.GeneralSelector)getParser("way!:areaStyle").selector()).conds.get(0);94 Condition c3 = ((Selector.GeneralSelector)getParser("way!:area_style").selector()).conds.get(0);91 Condition c0 = getParser("way:area-style").selector().getConditions().get(0); 92 Condition c1 = getParser("way!:area-style").selector().getConditions().get(0); 93 Condition c2 = getParser("way!:areaStyle").selector().getConditions().get(0); 94 Condition c3 = getParser("way!:area_style").selector().getConditions().get(0); 95 95 assertEquals(":areaStyle", c0.toString()); 96 96 assertEquals("!:areaStyle", c1.toString());
Note:
See TracChangeset
for help on using the changeset viewer.