8260331: javax/swing/JInternalFrame/8146321/JInternalFrameIconTest.java failed with "ERROR: icon and imageIcon not same."

Reviewed-by: azvegint
This commit is contained in:
Prasanta Sadhukhan 2021-05-17 12:32:35 +00:00
parent a29612ea99
commit 39a454bb87
2 changed files with 10 additions and 7 deletions

View File

@ -878,7 +878,6 @@ java/awt/event/MouseEvent/SpuriousExitEnter/SpuriousExitEnter.java 8254841 macos
java/awt/Focus/AppletInitialFocusTest/AppletInitialFocusTest1.java 8256289 windows-x64
java/awt/FullScreen/TranslucentWindow/TranslucentWindow.java 8258103 linux-all
java/awt/Focus/FrameMinimizeTest/FrameMinimizeTest.java 8016266 linux-x64
javax/swing/JInternalFrame/8146321/JInternalFrameIconTest.java 8260331 linux-x64
############################################################################

View File

@ -194,9 +194,11 @@ public class JInternalFrameIconTest {
Rectangle rect = internalFrame.getBounds();
Rectangle captureRect = new Rectangle(
point.x + internalFrame.getInsets().left,
point.y,
rect.width,
internalFrame.getInsets().top);
point.y + internalFrame.getInsets().top,
titleImageIcon.getIconWidth(),
titleImageIcon.getIconHeight());
System.out.println("imageicon captureRect " + captureRect);
imageIconImage
= robot.createScreenCapture(captureRect);
}
@ -206,9 +208,11 @@ public class JInternalFrameIconTest {
Rectangle rect = internalFrame.getBounds();
Rectangle captureRect = new Rectangle(
point.x + internalFrame.getInsets().left,
point.y,
rect.width,
internalFrame.getInsets().top);
point.y + internalFrame.getInsets().top,
titleIcon.getIconWidth(),
titleIcon.getIconHeight());
System.out.println("icon captureRect " + captureRect);
iconImage
= robot.createScreenCapture(captureRect);
}