Changeset 17000 in josm


Ignore:
Timestamp:
2020-09-02T20:51:50+02:00 (3 weeks ago)
Author:
simon04
Message:

see #19017 - MapCSSRendererTest: move reference.png to reference-java8.png (separate tests for Java 8 and Java 11+)

Location:
trunk/test
Files:
1 edited
22 moved

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/gui/mappaint/MapCSSRendererTest.java

    r16982 r17000  
    4545import org.openstreetmap.josm.testutils.JOSMTestRules;
    4646import org.openstreetmap.josm.tools.ColorHelper;
     47import org.openstreetmap.josm.tools.Utils;
    4748
    4849import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     
    383384
    384385        public File getReference() {
    385             return new File(getTestDirectory() + "/reference.png");
     386            // Java 8 renders SVG images differently, thus, use separate reference files
     387            final String javaSuffix = Utils.getJavaVersion() == 8 ? "-java8" : "";
     388            return new File(getTestDirectory() + "/reference" + javaSuffix + ".png");
    386389        }
    387390
Note: See TracChangeset for help on using the changeset viewer.