Changeset 16033 in josm for trunk/test


Ignore:
Timestamp:
2020-03-04T20:42:34+01:00 (5 years ago)
Author:
Don-vip
Message:

see #18845 - make MapCSSTagCheckerTest work without REVISION file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/MapCSSTagCheckerTest.java

    r15988 r16033  
    3232import org.openstreetmap.josm.data.preferences.sources.ValidatorPrefHelper;
    3333import org.openstreetmap.josm.data.validation.Severity;
     34import org.openstreetmap.josm.data.validation.Test.TagTest;
    3435import org.openstreetmap.josm.data.validation.TestError;
    3536import org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.ParseResult;
     
    180181    @Test
    181182    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: \"!\"; } }");
    185186        assertEquals(1, test.getErrorsForPrimitive(OsmUtils.createPrimitive("way foo=1"), false).size());
    186187        assertEquals(0, test.getErrorsForPrimitive(OsmUtils.createPrimitive("way bar=1"), false).size());
     
    198199
    199200    /**
    200      * Unit test for all {@link MapCSSTagChecker.TagTest} assertions.
     201     * Unit test for all {@link TagTest} assertions.
    201202     * @throws Exception if an error occurs
    202203     */
Note: See TracChangeset for help on using the changeset viewer.