Skip to content
Permalink
Browse files
8260331: javax/swing/JInternalFrame/8146321/JInternalFrameIconTest.ja…
…va failed with "ERROR: icon and imageIcon not same."

Reviewed-by: azvegint
  • Loading branch information
prsadhuk committed May 17, 2021
1 parent a29612e commit 39a454bb879fe316a69a4ec33ab287db2b5837db
Showing with 10 additions and 7 deletions.
  1. +0 −1 test/jdk/ProblemList.txt
  2. +10 −6 test/jdk/javax/swing/JInternalFrame/8146321/JInternalFrameIconTest.java
@@ -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 @@ private static void getImageIconBufferedImage() throws Exception {
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 @@ private static void getIconBufferedImage() throws Exception {
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);
}

1 comment on commit 39a454b

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 39a454b May 17, 2021

Please sign in to comment.