Changeset 18856 in josm
- Timestamp:
- 2023-10-09T16:16:30+02:00 (15 months ago)
- Location:
- trunk/test
- Files:
-
- 19 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/tools/ImageProviderTest.java
r18853 r18856 189 189 190 190 private static File getReferenceFile(String reference) { 191 // Java 8 renders SVG images differently, thus, use separate reference files 192 final String javaSuffix = Utils.getJavaVersion() == 8 ? "-java8" : ""; 191 // Java 8 and Java 21 render SVG images differently, thus, use separate reference files 192 final String javaSuffix; 193 switch (Utils.getJavaVersion()) { 194 case 8: javaSuffix = "-java8"; 195 break; 196 case 21: javaSuffix = "-java21"; 197 break; 198 default: javaSuffix = ""; 199 } 193 200 return new File(TestUtils.getTestDataRoot() + "/" + ImageProviderTest.class.getSimpleName() + javaSuffix + "/" + reference + ".png"); 194 201 }
Note:
See TracChangeset
for help on using the changeset viewer.