Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8159135: [PIT] javax/swing/JMenuItem/8152981/MenuItemIconTest.java al…
…ways fail

Backport-of: a222aedf0fa1961e902db35cbe4145623c6af999
  • Loading branch information
mrserb committed Jan 27, 2023
1 parent 8192d03 commit c3c871e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jdk/test/javax/swing/JMenuItem/8152981/MenuItemIconTest.java
Expand Up @@ -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
Expand Down Expand Up @@ -89,7 +89,7 @@ private static void checkPixeclColor(int x, int y) {
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);
Expand Down

1 comment on commit c3c871e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.