Changeset 9335 in josm for trunk/test/unit


Ignore:
Timestamp:
2016-01-07T02:18:27+01:00 (9 years ago)
Author:
Don-vip
Message:

see #10278 - use @supports rules instead of @media queries (deprecated since r8087)

File:
1 edited

Legend:

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

    r8936 r9335  
    123123    public void testPreprocessing() throws Exception {
    124124        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");
    127127        assertEquals(1, test.getErrorsForPrimitive(OsmUtils.createPrimitive("way foo=1"), false).size());
    128128        assertEquals(0, test.getErrorsForPrimitive(OsmUtils.createPrimitive("way bar=1"), false).size());
Note: See TracChangeset for help on using the changeset viewer.