Changeset 14489 in josm for trunk/test


Ignore:
Timestamp:
2018-12-02T15:30:24+01:00 (13 months ago)
Author:
Don-vip
Message:

see #17053 - fix parsing regression involving the - operator

Location:
trunk/test/unit/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTest.java

    r14142 r14489  
    461461        assertFalse(condition.applies(new Environment(OsmUtils.createPrimitive("way name=fÓo"))));
    462462    }
     463
     464    /**
     465     * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/17053">Bug #17053</a>.
     466     */
     467    @Test
     468    public void testTicket17053() {
     469        MapCSSStyleSource sheet = new MapCSSStyleSource(
     470            "way {\n" +
     471            "    placement_offset: eval(\n" +
     472            "        cond(prop(\"placement_value\")=\"right_of:1\",eval((prop(lane_width_forward_1)/2)-prop(lane_offset_forward_1)),\n" +
     473            "        0\n" +
     474            "        )\n" +
     475            "       );\n" +
     476            "}");
     477        sheet.loadStyleSource();
     478        assertTrue(sheet.getErrors().toString(), sheet.getErrors().isEmpty());
     479    }
    463480}
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java

    r14488 r14489  
    8383        checkUrl(info, info.getAttributionLinkURL());
    8484        String eula = info.getEulaAcceptanceRequired();
    85         if(eula != null) {
     85        if (eula != null) {
    8686            checkUrl(info, eula.replaceAll("\\{lang\\}", ""));
    8787        }
Note: See TracChangeset for help on using the changeset viewer.