Changeset 14481 in josm for trunk/test
- Timestamp:
- 2018-12-01T22:33:38+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java
r14138 r14481 220 220 } 221 221 222 /** 223 * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/17053">Bug #17053</a>. 224 * @throws ParseException if a parsing error occurs 225 */ 226 @Test 227 public void testTicket17053() throws ParseException { 228 final MapCSSTagChecker test = buildTagChecker( 229 "way[highway=cycleway][cycleway=track] {\n" + 230 " throwWarning: tr(\"{0} with {1}\", \"{0.tag}\", \"{1.tag}\");\n" + 231 " -osmoseItemClassLevel: \"3032/30328/2\";\n" + 232 " -osmoseTags: list(\"tag\", \"highway\", \"cycleway\");\n" + 233 " fixRemove: \"cycleway\";\n" + 234 "}"); 235 assertEquals(1, test.checks.size()); 236 TagCheck check = test.checks.get("test").iterator().next(); 237 assertEquals(1, check.fixCommands.size()); 238 assertEquals(2, check.rule.declaration.instructions.size()); 239 } 240 222 241 private void doTestNaturalWood(int ticket, String filename, int errorsCount, int setsCount) throws Exception { 223 242 final MapCSSTagChecker test = buildTagChecker(
Note:
See TracChangeset
for help on using the changeset viewer.