<Swing Dev> RFR: 8273043: [TEST_BUG] Automate NimbusJTreeSelTextColor.java [v2]

Sergey Bylokhov serb at openjdk.java.net
Fri Aug 27 16:44:26 UTC 2021


On Fri, 27 Aug 2021 09:10:54 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> Yes, the test passes. The only exception is macOS: the test fails there either way because the text is rendered with antialiasing and I can't disable font smoothing on macOS. Does anyone know how to disable it?
> 
> I'm thinking about skipping macOS altogher.

You can try to change the foregound color in the Nimbus defaults then render it, then compare the part of the images which have the text. If the images are identical then your color was ignored and the bug exists.

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

PR: https://git.openjdk.java.net/jdk/pull/5269


More information about the swing-dev mailing list