On Mon, 5 Aug 2024 15:43:03 GMT, Martin Fox <m...@openjdk.org> wrote:

>> Q: is this the only test that needs explicit timeout?
>
> I don't see any way to query whether we're running under Wayland or not. That 
> would be nice to have.
> 
> This is the only test that uses the AWT Robot on Linux. The window background 
> test also uses the AWT Robot but only runs on Mac.

@alexeysemenyukoracle added an 
[`isOnWayland`](https://github.com/openjdk/jfx/blob/jfx23/tests/system/src/test/java/test/robot/javafx/embed/swing/SwingNodeBase.java#L194)
 method to `SwingNodeBase.java`. I'll file a new testbug to skip tests that use 
AWT Robot on Wayland pending the fix for 
[JDK-8335468](https://bugs.openjdk.org/browse/JDK-8335468). As part of that, we 
can move `isOnWayland` to 
[`Util.java`](https://github.com/openjdk/jfx/blob/jfx23/tests/system/src/test/java/test/util/Util.java)
 (and fix it to first check `PlatformUtil::isLinux`).

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1473#discussion_r1704352887

Reply via email to