[jdk25u-dev] Integrated: 8368892: Make JEditorPane/TestBrowserBGColor.java headless
Roland Mesde
duke at openjdk.org
Thu Feb 12 12:12:28 UTC 2026
On Thu, 5 Feb 2026 17:19:22 GMT, Roland Mesde <duke at openjdk.org> wrote:
> Backporting JDK-8368892: Make JEditorPane/TestBrowserBGColor.java headless.
>
> This PR convert TestBrowserBGColor.java to run headless by verifying background color programmatically instead of using Robot.getPixelColor to check screen pixels.
>
> For parity with Oracle JDK.
>
> Ran related tests on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:
>
> make test TEST=test/jdk/javax/swing/JEditorPane/TestBrowserBGColor.java
>
> Results attached:
>
> [windows-x64-specific-test.log](https://github.com/user-attachments/files/25113934/windows-x64-specific-test.log)
> [macos-aarch64-specific-test.log](https://github.com/user-attachments/files/25113935/macos-aarch64-specific-test.log)
> [linux-x64-specific-test.log](https://github.com/user-attachments/files/25113936/linux-x64-specific-test.log)
> [linux-aarch64-specific-test.log](https://github.com/user-attachments/files/25113937/linux-aarch64-specific-test.log)
This pull request has now been integrated.
Changeset: c5b1cb0d
Author: Roland Mesde <mesde at amazon.com>
Committer: Paul Hohensee <phh at openjdk.org>
URL: https://git.openjdk.org/jdk25u-dev/commit/c5b1cb0dba37f7d9df3b50747dfda2a41469f73a
Stats: 88 lines in 1 file changed: 16 ins; 31 del; 41 mod
8368892: Make JEditorPane/TestBrowserBGColor.java headless
Backport-of: 6bec42adcc1d99e16ddd5148bb4012c74a0c3090
-------------
PR: https://git.openjdk.org/jdk25u-dev/pull/238
More information about the jdk-updates-dev
mailing list