RFR: 8293119: Additional constrained resize policies for Tree/TableView [v31]

Kevin Rushforth kcr at openjdk.org
Mon Jan 9 22:57:06 UTC 2023


On Mon, 9 Jan 2023 18:00:29 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> modules/javafx.controls/src/test/java/test/javafx/scene/control/ResizeHelperTest.java line 214:
>> 
>>> 212:      */
>>> 213:     //@Test // this test takes too much time!
>>> 214:     public void testWidthChange() {
>> 
>> Do you think testing a pseudo-random subset of the combinations would be interesting?
>> 
>> Loosely related to this, it might be useful follow-up test enhancement to add a generic `long.running.test` system property (or similar) that could be set when a `LONG_RUNNING_TEST` gradle property is set (similar to what we do for `unstable.test`). That way this, and other similarly exhaustive tests, could be run explicitly when desired.
>
> Perhaps a combination of a number of typical tree/table configurations and a pseudo-random set could be added.  I would rather add it as a part of [JDK-8299753](https://bugs.openjdk.org/browse/JDK-8299753), since the new algorithm (simulated annealing) would have the constraint checks embedded in it on one hand, and on the other it would need a different set of tests, for example to verify that it converges.
> 
> A LONG_RUNNING_TEST is a good idea in general, I agree.  The problem with this particular test, and the reason why i did not pursue it, is that it does not finish in 40 minutes, which is way too long for a test.  I would like to think about it a bit longer, if I may.

Yes, I do think this needs additional thought / discussion (and definitely not for this release).

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

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


More information about the openjfx-dev mailing list