8159135: [PIT] javax/swing/JMenuItem/8152981/MenuItemIconTest.java always fail
Reviewed-by: alexsch
This commit is contained in:
parent
6d82cbce2a
commit
a222aedf0f
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* @test
|
* @test
|
||||||
* @bug 8152981
|
* @bug 8152981 8159135
|
||||||
* @summary Double icons with JMenuItem setHorizontalTextPosition on Win 10
|
* @summary Double icons with JMenuItem setHorizontalTextPosition on Win 10
|
||||||
* @requires (os.family == "windows")
|
* @requires (os.family == "windows")
|
||||||
* @run main MenuItemIconTest
|
* @run main MenuItemIconTest
|
||||||
@ -89,7 +89,7 @@ public class MenuItemIconTest {
|
|||||||
robot.delay(2000);
|
robot.delay(2000);
|
||||||
robot.mouseMove(x, y);
|
robot.mouseMove(x, y);
|
||||||
Color c = robot.getPixelColor(x, y);
|
Color c = robot.getPixelColor(x, y);
|
||||||
if (c.getRed() == 255) {
|
if (Color.RED.equals(c)) {
|
||||||
errorMessage = "Test Failed";
|
errorMessage = "Test Failed";
|
||||||
}
|
}
|
||||||
robot.delay(5000);
|
robot.delay(5000);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user