mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-06 14:10:36 +00:00
8260331: javax/swing/JInternalFrame/8146321/JInternalFrameIconTest.java failed with "ERROR: icon and imageIcon not same."
Reviewed-by: azvegint
This commit is contained in:
parent
a29612ea99
commit
39a454bb87
@ -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
|
||||
|
||||
|
||||
############################################################################
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user