[jdk25u-dev] RFR: 8368892: Make JEditorPane/TestBrowserBGColor.java headless

duke duke at openjdk.org
Wed Feb 11 15:30:04 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)

@rm-gh-8 
Your change (at version 5bc17dda8453d5e57fb7ad0d9b3bca76cfe9b257) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk25u-dev/pull/238#issuecomment-3885178828


More information about the jdk-updates-dev mailing list