8151699: [TEST_BUG] fix awt/image/multiresolution/MultiResolutionTrayIconTest
Reviewed-by: serb
--- a/jdk/test/java/awt/image/multiresolution/MultiResolutionTrayIconTest/MultiResolutionTrayIconTest.java Fri Mar 11 11:17:17 2016 +0300
+++ b/jdk/test/java/awt/image/multiresolution/MultiResolutionTrayIconTest/MultiResolutionTrayIconTest.java Fri Mar 11 14:06:14 2016 +0300
@@ -90,8 +90,10 @@
BufferedImage nok = generateImage(w / 2 + 2, h / 2 + 2, Color.RED);
BaseMultiResolutionImage mri =
new BaseMultiResolutionImage(new BufferedImage[] {nok, img});
- icon = new TrayIcon(img);
+ icon = new TrayIcon(img);
+ icon.setImageAutoSize(true); // just in case
iconMRI = new TrayIcon(mri);
+ iconMRI.setImageAutoSize(true);
}
private void doTest() {