- Timestamp:
- 2019-10-05T14:19:41+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r15359 r15417 933 933 final boolean isError = pErrors.stream().anyMatch(e -> e.getTester().equals(check.rule)); 934 934 if (isError != i.getValue()) { 935 final String error = MessageFormat.format("Expecting test ''{0}'' (i.e., {1}) to {2} {3} (i.e., {4})", 936 check.getMessage(p), check.rule.selectors, i.getValue() ? "match" : "not match", i.getKey(), p.getKeys()); 937 assertionErrors.add(error); 935 assertionErrors.add(MessageFormat.format("Expecting test ''{0}'' (i.e., {1}) to {2} {3} (i.e., {4})", 936 check.getMessage(p), check.rule.selectors, i.getValue() ? "match" : "not match", i.getKey(), p.getKeys())); 937 } 938 if (isError) { 939 // Check that autofix works as expected 940 Command fix = check.fixPrimitive(p); 941 if (fix != null && fix.executeCommand() && !getErrorsForPrimitive(p, true, checksToRun).isEmpty()) { 942 assertionErrors.add(MessageFormat.format("Autofix does not work for test ''{0}'' (i.e., {1})", 943 check.getMessage(p), check.rule.selectors)); 944 } 938 945 } 939 946 ds.removePrimitive(p);
Note:
See TracChangeset
for help on using the changeset viewer.