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

[testbug] Tree/TableViewResizeColumnToFitContentTest fails with fractional screen scale

    XMLWordPrintable

Details

    • b11

    Description

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

      $ gradle --continue --info -PFULL_TEST=true -PUSE_ROBOT=true :systemTests:test --tests TableViewResizeColumnToFitContentTest --tests TreeTableViewResizeColumnToFitContentTest

      TableViewResizeColumnToFitContentTest > resizeColumnToFitContentTest FAILED
          java.lang.AssertionError: TableView.CONSTRAINED_RESIZE_POLICY ignored. expected:<448.0> but was:<448.8>
              at org.junit.Assert.fail(Assert.java:89)
              at org.junit.Assert.failNotEquals(Assert.java:835)
              at org.junit.Assert.assertEquals(Assert.java:555)
              at test.robot.javafx.scene.tableview.TableViewResizeColumnToFitContentTest.resizeColumnToFitContentTest(TableViewResizeColumnToFitContentTest.java:103)

      TreeTableViewResizeColumnToFitContentTest > resizeColumnToFitContentTest FAILED
          java.lang.AssertionError: TreeTableView.CONSTRAINED_RESIZE_POLICY ignored. expected:<448.0> but was:<448.8>
              at org.junit.Assert.fail(Assert.java:89)
              at org.junit.Assert.failNotEquals(Assert.java:835)
              at org.junit.Assert.assertEquals(Assert.java:555)
              at test.robot.javafx.scene.treetableview.TreeTableViewResizeColumnToFitContentTest.resizeColumnToFitContentTest(TreeTableViewResizeColumnToFitContentTest.java:103)

      Attachments

        Issue Links

          Activity

            People

              angorya Andy Goryachev
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: