Changeset 13823 in josm for trunk/test


Ignore:
Timestamp:
2018-05-23T20:22:13+02:00 (14 months ago)
Author:
Don-vip
Message:

see #9984, see #16047 - Java 11 handles transparent PNG out of the box, disable JOSM mechanisms to force transparency on this version

File:
1 edited

Legend:

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

    r11526 r13823  
    6464        assertEquals(Transparency.TRANSLUCENT, ImageProvider.read(file, true, true).getTransparency());
    6565        assertEquals(Transparency.TRANSLUCENT, ImageProvider.read(file, false, true).getTransparency());
    66         assertEquals(Transparency.OPAQUE, ImageProvider.read(file, false, false).getTransparency());
    67         assertEquals(Transparency.OPAQUE, ImageProvider.read(file, true, false).getTransparency());
     66        long expectedTransparency = Utils.getJavaVersion() < 11 ? Transparency.OPAQUE : Transparency.TRANSLUCENT;
     67        assertEquals(expectedTransparency, ImageProvider.read(file, false, false).getTransparency());
     68        assertEquals(expectedTransparency, ImageProvider.read(file, true, false).getTransparency());
    6869    }
    6970
Note: See TracChangeset for help on using the changeset viewer.