RFR: 8349351 : Combine Screen Inset Tests into a Single File [v2]

anass baya duke at openjdk.org
Sun Feb 9 19:56:48 UTC 2025


> While working on [JDK-6899304](https://bugs.openjdk.org/browse/JDK-6899304), we discovered that there are two tests meant to perform the same task.
> 
> The first test is located at test/jdk/java/awt/Multiscreen/MultiScreenInsetsTest/MultiScreenInsetsTest.java and was originally designed for multi-screen configurations on Linux platforms.
> 
> The second test, located at test/jdk/java/awt/Toolkit/ScreenInsetsTest/ScreenInsetsTest.java, is intended for single-screen configurations but lacks accuracy due to some workarounds to support Windows.
> 
> Now, the test at test/jdk/java/awt/Multiscreen/MultiScreenInsetsTest/MultiScreenInsetsTest.java has been updated to work across all platforms, including Windows, which was previously failing. As a result, it has been agreed to rename this test to ScreenInsetsTest, remove the condition that restricted its execution to multi-screen configurations, and remove the redundant test at test/jdk/java/awt/Toolkit/ScreenInsetsTest/ScreenInsetsTest.java.

anass baya has updated the pull request incrementally with one additional commit since the last revision:

  Add proposed enhancments

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/23449/files
  - new: https://git.openjdk.org/jdk/pull/23449/files/81797629..95750a44

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=23449&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23449&range=00-01

  Stats: 11 lines in 1 file changed: 2 ins; 0 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/23449.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23449/head:pull/23449

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


More information about the client-libs-dev mailing list