RFR: 8368892: Make JEditorPane/TestBrowserBGColor.java headless
Sergey Bylokhov
serb at openjdk.org
Thu Oct 2 08:46:56 UTC 2025
On Mon, 29 Sep 2025 20:44:03 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
> What do others think about changing `background: #FFF` to `background: #CCC`?
>
> The white background is the default for text components. If parsing the color fails, the background color will remain white. With `#CCC`, the test will fail if the color remains white, the default color; it will also fail if `#CCC` is decoded as `0x000CCC` as was the case before [JDK-8213781](https://bugs.openjdk.org/browse/JDK-8213781) was fixed.
Up to you, both are fine.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27556#issuecomment-3359914107
More information about the client-libs-dev
mailing list