Changeset 19220 in josm for trunk/test/functional
- Timestamp:
- 2024-09-11T21:33:23+02:00 (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/gui/mappaint/MapCSSRendererTest.java
r19056 r19220 222 222 } 223 223 final BufferedImage reference = ImageIO.read(referenceImageFile); 224 assertImageEquals(testIdentifier, reference, image, thresholdPixels, thresholdTotalColorDiff, diffImageConsumer); 225 } 226 227 /** 228 * Compares the reference image file with the actual images given as {@link BufferedImage}. 229 * @param testIdentifier a test identifier for error messages 230 * @param reference the reference image 231 * @param image the actual image 232 * @param thresholdPixels maximum number of differing pixels 233 * @param thresholdTotalColorDiff maximum sum of color value differences 234 * @param diffImageConsumer a consumer for a rendered image highlighting the differing pixels, may be null 235 */ 236 public static void assertImageEquals(String testIdentifier, BufferedImage reference, BufferedImage image, 237 int thresholdPixels, int thresholdTotalColorDiff, Consumer<BufferedImage> diffImageConsumer) { 224 238 assertEquals(reference.getWidth(), image.getWidth()); 225 239 assertEquals(reference.getHeight(), image.getHeight());
Note:
See TracChangeset
for help on using the changeset viewer.