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

Roland Mesde duke at openjdk.org
Thu Feb 5 17:47:51 UTC 2026


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

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

Commit messages:
 - Backport 6bec42adcc1d99e16ddd5148bb4012c74a0c3090

Changes: https://git.openjdk.org/jdk25u-dev/pull/238/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=238&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8368892
  Stats: 88 lines in 1 file changed: 16 ins; 31 del; 41 mod
  Patch: https://git.openjdk.org/jdk25u-dev/pull/238.diff
  Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/238/head:pull/238

PR: https://git.openjdk.org/jdk25u-dev/pull/238


More information about the jdk-updates-dev mailing list