Integrated: 8299553: Make ScaledEtchedBorderTest.java comprehensive

Alexey Ivanov aivanov at openjdk.org
Thu Jan 19 19:36:28 UTC 2023


On Tue, 3 Jan 2023 19:59:38 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> The `ScaledEtchedBorderTest.java` test ([JDK-8279614](https://bugs.openjdk.org/browse/JDK-8279614)) verifies that the thickness of lines of `EtchedBorder` is consistent. The component inside had the same background color as the frame. Yet if there's another component the background of which is different, that background could be seen.
> 
> The updated test covers the scenario reported in [JDK-8294921](https://bugs.openjdk.org/browse/JDK-8294921).
> 
> The bug itself is fixed by refactoring [JDK-8294680](https://bugs.openjdk.org/browse/JDK-8294680) the border rendering code which uses a more precise coordinate calculation, see #11571. Thus, I contribute the test under a separate bugid.
> 
> I also modified `ScaledLineBorderTest.java` so that the location of the child panels is saved when they're created as done in `ScaledTextFieldBorderTest.java` in #11498. I removed the unused `Component` import after this modification from both tests.

This pull request has now been integrated.

Changeset: 558d610b
Author:    Alexey Ivanov <aivanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/558d610bebb6967b4cfe922f62f1c4ba0df7daaf
Stats:     288 lines in 3 files changed: 145 ins; 54 del; 89 mod

8299553: Make ScaledEtchedBorderTest.java comprehensive

Reviewed-by: serb, honkar, achung

-------------

PR: https://git.openjdk.org/jdk/pull/11836



More information about the client-libs-dev mailing list