Changeset 16033 in josm


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

see #18845 - make MapCSSTagCheckerTest work without REVISION file

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r16028 r16033  
    468468        </sequential>
    469469    </macrodef>
    470     <target name="test-compile" depends="test-init,compile,extract-libraries,epsg,create-revision">
     470    <target name="test-compile" depends="test-init,compile,extract-libraries,epsg">
    471471        <call-javac testfamily="unit">
    472472            <cp-elements>
  • 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.