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

[testbug] SwingNodeJDialogTest fails with fractional screen scale

XMLWordPrintable

      To reproduce, run the following on a Windows 11 machine with screen scale set to 150%.

      $ gradle --continue --info -PFULL_TEST=true -PUSE_ROBOT=true cleanTest :systemTests:test --tests SwingNodeJDialogTest

      SwingNodeJDialogTest > testJDialogAbove FAILED
          java.lang.AssertionError: JDialog is not above JavaFX stage expected:<java.awt.Color[r=0,g=0,b=255]> but was:<java.awt.Color[r=102,g=0,b=0]>
              at org.junit.Assert.fail(Assert.java:89)
              at org.junit.Assert.failNotEquals(Assert.java:835)
              at org.junit.Assert.assertEquals(Assert.java:120)
              at test.robot.javafx.embed.swing.SwingNodeBase.testAbove(SwingNodeBase.java:205)
              at test.robot.javafx.embed.swing.SwingNodeJDialogTest.testJDialogAbove(SwingNodeJDialogTest.java:42)

            angorya Andy Goryachev
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: