Skip to content

Commit

Permalink
8328540: test javax/swing/JSplitPane/4885629/bug4885629.java fails on…
Browse files Browse the repository at this point in the history
… windows hidpi

Backport-of: fa823bd21c6676c67c42275efb59868200409b38
  • Loading branch information
Andrew Lu committed Apr 16, 2024
1 parent f5c0d78 commit 0dd4808
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/jdk/javax/swing/JSplitPane/4885629/bug4885629.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -104,9 +104,9 @@ public void run() {

SwingUtilities.convertPointToScreen(p, sp);

for (int i = 0; i < rect.width; i++) {
for (int i = 1; i < rect.width - 1; i++) {
if (!BGCOLOR.equals(robot.getPixelColor(p.x + i, p.y + rect.height - 1))) {
throw new Error("The divider's area has incorrect color.");
throw new Error("The divider's area has incorrect color. i=" + i);
}
}
}
Expand Down

1 comment on commit 0dd4808

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