8151699: [TEST_BUG] fix awt/image/multiresolution/MultiResolutionTrayIconTest
authoravstepan
Fri, 11 Mar 2016 14:06:14 +0300
changeset 36872 16a225f7de51
parent 36871 62d3bb5aba7a
child 36873 ed3edebf7d37
8151699: [TEST_BUG] fix awt/image/multiresolution/MultiResolutionTrayIconTest Reviewed-by: serb
jdk/test/java/awt/image/multiresolution/MultiResolutionTrayIconTest/MultiResolutionTrayIconTest.java
--- 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() {