headless platform in sandbox

Johan Vos johan.vos at gluonhq.com
Fri Sep 20 20:27:08 UTC 2024


Hi,

Here is a quick update about the headless platform support, as developed in
the jfx-sandbox repo [1].
While there is a Robot implementation in the headless platform
(com.sun.glass.ui.headless), there are still many test failures because we
don't read the pixels (yet).
When running the systemtests, without the Robot tests, there are only 3
failures (592 tests, 44 ignored) on my Linux. These are:

1. ClipboardTest.testCopyUTF8String
-> this relies on the AWT clipboard, which is linked with the system
clipboard which depends on the windowing implementation (e.g. X). We don't
want the headless platform to depend on this, so I think we should ignore
this test when running headless.

2. MainLauncherTest.testMainLauncher[20]
-> the logic is not 100% clear to me, but this is a test on headless which
should fail (but it works for me)

3. SandboxAppTest.testFXNonApp
-> this one and the testFXWebApp fail most of the time, but not always. I
noticed that Thread.setContextClassLoader throws an AccessControlException
when I run with the headless platform but not when I run with the GTK
platform. Also, I noted there is an issue for this test on Windows [2]

Feedback is of course very welcome.

- Johan

[1] https://github.com/openjdk/jfx-sandbox/tree/johanvos-headless
[2] https://bugs.openjdk.org/browse/JDK-8255486
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240920/3f6dd94e/attachment-0001.htm>


More information about the openjfx-dev mailing list