RFR: 8305709: [testbug] Tree/TableViewResizeColumnToFitContentTest fails with fractional screen scale

Andy Goryachev angorya at openjdk.org
Thu Sep 7 18:46:09 UTC 2023


Snapping introduces differences between computed values and snapped values, so we need to use non-zero tolerance when checking for equality.  The maximum tolerance is (1 / scale) - one display pixel scaled back to the local coordinates.

The tests have been modified to use the scale-specific tolerance.

Tested with macOS at scale 1.0 and win11 at scales (100%, 125%, 150%, 175%).

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

Commit messages:
 - tree table view
 - works
 - tolerance

Changes: https://git.openjdk.org/jfx/pull/1234/files
 Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1234&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8305709
  Stats: 85 lines in 3 files changed: 37 ins; 11 del; 37 mod
  Patch: https://git.openjdk.org/jfx/pull/1234.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1234/head:pull/1234

PR: https://git.openjdk.org/jfx/pull/1234


More information about the openjfx-dev mailing list