Changeset 16997 in josm for trunk/test
- Timestamp:
- 2020-09-02T19:58:37+02:00 (4 years ago)
- Location:
- trunk/test
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/tools/ImageProviderTest.java
r16989 r16997 185 185 ImageResource resource = new ImageProvider("presets/misc/housenumber_small").getResource(); 186 186 testImage(8, 6, "housenumber_small-BOUNDED-08x08", resource.getImageIconBounded(new Dimension(8, 8))); 187 testImage(1 2, 9, "housenumber_small-BOUNDED-16x16", resource.getImageIconBounded(new Dimension(16, 16)));188 testImage( 12, 9, "housenumber_small-BOUNDED-24x24", resource.getImageIconBounded(new Dimension(24, 24)));187 testImage(16, 12, "housenumber_small-BOUNDED-16x16", resource.getImageIconBounded(new Dimension(16, 16))); 188 testImage(24, 18, "housenumber_small-BOUNDED-24x24", resource.getImageIconBounded(new Dimension(24, 24))); 189 189 } 190 190 … … 261 261 GuiSizesHelper.setPixelDensity(guiScale); 262 262 Point hotSpot = new Point(); 263 finalUnaryOperator<Dimension> bestCursorSizeFunction = dim -> dim;263 UnaryOperator<Dimension> bestCursorSizeFunction = dim -> dim; 264 264 Image image = ImageProvider.getCursorImage("normal", "selection", bestCursorSizeFunction, hotSpot); 265 bestCursorSizeFunction = dim -> new Dimension((int) (dim.width * guiScale), (int) (dim.height * guiScale)); 265 266 assertCursorDimensionsCorrect(new Point.Double(3.0, 2.0), image, bestCursorSizeFunction, hotSpot); 266 267 assertImageEquals("cursor", getReferenceFile("cursor-normal-selection-" + Math.round(guiScale * 10)),
Note:
See TracChangeset
for help on using the changeset viewer.