On Tue, 11 Jul 2023 12:38:39 GMT, Karthik P K <k...@openjdk.org> wrote:

> > Is it possible to write a Unit test as well?
> 
> I tried to write unit test but since it should be checked if the graphic is 
> cleared while collapsing the tree and added back while expanding, I couldn't 
> find out a way to do this. 

I would try to test the state of the graphic of the concrete item - keep track 
of it on setup and before showing the treetable - after showing, it should/not 
be part of the visible hierarchy (as appropriate) after expanding/collapsing. 
When it should be visible also verify that it is at the expected location.

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

PR Comment: https://git.openjdk.org/jfx/pull/1172#issuecomment-1630896955

Reply via email to