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

Alexey Ivanov aivanov at openjdk.java.net
Fri Aug 27 09:14:22 UTC 2021


On Fri, 27 Aug 2021 08:50:34 GMT, Pankaj Bansal <pbansal at openjdk.org> wrote:

> I assume you must have tested this on headless environment and it must have passed.

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.

> But is it really necessary to make this headless as we are showing JFrame and setting L&F. I mean these things mostly associate with headful environment.

We're not showing the frame unless `-show` option is passed to the test. This is mostly for debugging to see the frame and JTree. Showing the frame on a headless host will throw an exception.

There are more headless hosts which can run the test, so a headless test could be run easier and faster than a headful one.

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

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


More information about the swing-dev mailing list