Changeset 9335 in josm for trunk/test/unit/org
- Timestamp:
- 2016-01-07T02:18:27+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java
r8936 r9335 123 123 public void testPreprocessing() throws Exception { 124 124 final MapCSSTagChecker test = buildTagChecker("" + 125 "@ media(min-josm-version: 1) { *[foo] { throwWarning: \"!\"; } }\n" +126 "@ media(min-josm-version: 2147483647) { *[bar] { throwWarning: \"!\"; } }\n");125 "@supports (min-josm-version: 1) { *[foo] { throwWarning: \"!\"; } }\n" + 126 "@supports (min-josm-version: 2147483647) { *[bar] { throwWarning: \"!\"; } }\n"); 127 127 assertEquals(1, test.getErrorsForPrimitive(OsmUtils.createPrimitive("way foo=1"), false).size()); 128 128 assertEquals(0, test.getErrorsForPrimitive(OsmUtils.createPrimitive("way bar=1"), false).size());
Note:
See TracChangeset
for help on using the changeset viewer.