Changeset 16033 in josm for trunk/test
- Timestamp:
- 2020-03-04T20:42:34+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java
r15988 r16033 32 32 import org.openstreetmap.josm.data.preferences.sources.ValidatorPrefHelper; 33 33 import org.openstreetmap.josm.data.validation.Severity; 34 import org.openstreetmap.josm.data.validation.Test.TagTest; 34 35 import org.openstreetmap.josm.data.validation.TestError; 35 36 import org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.ParseResult; … … 180 181 @Test 181 182 public void testPreprocessing() throws ParseException { 182 final MapCSSTagChecker test = buildTagChecker( "" +183 "@supports (min-josm-version: 1) { *[foo] { throwWarning: \"!\"; } }\n" +184 "@supports (min-josm-version: 2147483647) { *[bar] { throwWarning: \"!\"; } } \n");183 final MapCSSTagChecker test = buildTagChecker( 184 "@supports (min-josm-version: 0) { *[foo] { throwWarning: \"!\"; } }\n" + 185 "@supports (min-josm-version: 2147483647) { *[bar] { throwWarning: \"!\"; } }"); 185 186 assertEquals(1, test.getErrorsForPrimitive(OsmUtils.createPrimitive("way foo=1"), false).size()); 186 187 assertEquals(0, test.getErrorsForPrimitive(OsmUtils.createPrimitive("way bar=1"), false).size()); … … 198 199 199 200 /** 200 * Unit test for all {@link MapCSSTagChecker.TagTest} assertions.201 * Unit test for all {@link TagTest} assertions. 201 202 * @throws Exception if an error occurs 202 203 */
Note:
See TracChangeset
for help on using the changeset viewer.