Changeset 16989 in josm for trunk/test/functional/org


Ignore:
Timestamp:
2020-08-30T23:20:08+02:00 (4 years ago)
Author:
simon04
Message:

see #19706, see #19725 - ImageProviderTest: add tests comparing the result with reference images (separate images for Java 8)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/functional/org/openstreetmap/josm/tools/ImageProviderTest.java

    r16984 r16989  
    210210
    211211    private static File getReferenceFile(String reference) {
    212         return new File(TestUtils.getTestDataRoot() + "/" + ImageProviderTest.class.getSimpleName() + "/" + reference + ".png");
     212        // Java 8 renders SVG images differently, thus, use separate reference files
     213        final String javaSuffix = Utils.getJavaVersion() == 8 ? "-java8" : "";
     214        return new File(TestUtils.getTestDataRoot() + "/" + ImageProviderTest.class.getSimpleName() + javaSuffix + "/" + reference + ".png");
    213215    }
    214216
Note: See TracChangeset for help on using the changeset viewer.