From a222aedf0fa1961e902db35cbe4145623c6af999 Mon Sep 17 00:00:00 2001 From: Rajeev Chamyal Date: Wed, 15 Jun 2016 12:04:29 +0530 Subject: [PATCH] 8159135: [PIT] javax/swing/JMenuItem/8152981/MenuItemIconTest.java always fail Reviewed-by: alexsch --- jdk/test/javax/swing/JMenuItem/8152981/MenuItemIconTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdk/test/javax/swing/JMenuItem/8152981/MenuItemIconTest.java b/jdk/test/javax/swing/JMenuItem/8152981/MenuItemIconTest.java index 1a872a5ee85..451da3cec4c 100644 --- a/jdk/test/javax/swing/JMenuItem/8152981/MenuItemIconTest.java +++ b/jdk/test/javax/swing/JMenuItem/8152981/MenuItemIconTest.java @@ -23,7 +23,7 @@ /* * @test - * @bug 8152981 + * @bug 8152981 8159135 * @summary Double icons with JMenuItem setHorizontalTextPosition on Win 10 * @requires (os.family == "windows") * @run main MenuItemIconTest @@ -89,7 +89,7 @@ public class MenuItemIconTest { robot.delay(2000); robot.mouseMove(x, y); Color c = robot.getPixelColor(x, y); - if (c.getRed() == 255) { + if (Color.RED.equals(c)) { errorMessage = "Test Failed"; } robot.delay(5000);