From 360ce25e95d706fbb5c7033e8b3a3c2f00dbd3f6 Mon Sep 17 00:00:00 2001 From: Pankaj Bansal Date: Tue, 28 Nov 2017 16:27:23 +0530 Subject: [PATCH] 8190861: [TESTBUG] javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentSwing.java is wrong Reviewed-by: serb, psadhukhan --- .../ShapedAndTranslucentWindows/PerPixelTranslucentSwing.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentSwing.java b/test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentSwing.java index 2d8ab309be9..12371d4785d 100644 --- a/test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentSwing.java +++ b/test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentSwing.java @@ -90,7 +90,7 @@ public class PerPixelTranslucentSwing extends Common { Color color = robot.getPixelColor(loc.x + bounds.width / 2, loc.y + bounds.height + 3); System.out.println(color); - if (FG_COLOR.getRGB() == color.getRGB()) + if (BG_COLOR.getRGB() != color.getRGB()) throw new RuntimeException("Background is not translucent (" + color + ")"); EventQueue.invokeAndWait(this::dispose);