Skip to content

Commit

Permalink
8296556: Mark two RobotTest methods as unstable on HiDPI Windows systems
Browse files Browse the repository at this point in the history
Reviewed-by: arapte
  • Loading branch information
karthikpandelu authored and arapte committed Nov 17, 2022
1 parent 6cc9c4d commit 74af45d
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -677,6 +677,10 @@ private static void testPixelCapture(boolean primitiveArg)

@Test
public void testPixelCaptureAverage() throws Exception {
if (PlatformUtil.isWindows() && Screen.getPrimary().getOutputScaleX() > 1) {
// Mark this test as unstable on Windows when HiDPI scale is more than 100%
Assume.assumeTrue(Boolean.getBoolean("unstable.test")); // JDK-8255079
}
CountDownLatch setSceneLatch = new CountDownLatch(1);
Pane pane = new StackPane();
InvalidationListener invalidationListener = observable -> setSceneLatch.countDown();
Expand Down Expand Up @@ -729,6 +733,10 @@ public void testPixelCaptureThrowsNPEForNullArgument() {

@Test
public void testScreenCapture() throws Exception {
if (PlatformUtil.isWindows() && Screen.getPrimary().getOutputScaleX() > 1) {
// Mark this test as unstable on Windows when HiDPI scale is more than 100%
Assume.assumeTrue(Boolean.getBoolean("unstable.test")); // JDK-8207379
}
CountDownLatch setSceneLatch = new CountDownLatch(1);
Pane pane = new StackPane();
InvalidationListener invalidationListener = observable -> setSceneLatch.countDown();
Expand Down

1 comment on commit 74af45d

@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.