Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8335470

[XWayland] JavaFX tests that use AWT Robot fail on Wayland

XMLWordPrintable

    • b21

      tests/system/src/test/java/test/robot/javafx/embed/swing/SwingNodeJDialogTest.java . testNodeRemovalBeforeShow fails on Wayland even after resolving JDK-8326712 and JDK-8335468.


      SwingNodeJDialogTest > testNodeRemovalBeforeShow FAILED
          java.lang.AssertionError: JDialog is above JavaFX stage
              at org.junit.Assert.fail(Assert.java:89)
              at org.junit.Assert.assertTrue(Assert.java:42)
              at org.junit.Assert.assertFalse(Assert.java:65)
              at test.robot.javafx.embed.swing.SwingNodeBase.testAbove(SwingNodeBase.java:208)
              at test.robot.javafx.embed.swing.SwingNodeJDialogTest.testNodeRemovalBeforeShow(SwingNodeJDialogTest.java:67)


      Similarly, tests/system/src/test/java/test/robot/javafx/scene/SRGBTest.java fails on XWayland:

      SRGBTest > sRGBPixelTest FAILED
          org.junit.runners.model.TestTimedOutException: test timed out after 15000 milliseconds
              at java.base/java.lang.Object.wait0(Native Method)
              at java.base/java.lang.Object.wait(Object.java:366)
              at java.base/java.lang.Object.wait(Object.java:339)
              at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1365)
              at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1346)
              at java.desktop/javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1480)
              at test.robot.javafx.scene.SRGBTest.getSRGBColorAtScreenCenter(SRGBTest.java:104)
              at test.robot.javafx.scene.SRGBTest.sRGBPixelTest(SRGBTest.java:225)

            azvegint Alexander Zvegintsev
            azvegint Alexander Zvegintsev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: