RFR: 8314779: [testbug] Add test to all the XYCharts to check if chart components are removed when series is cleared

Andy Goryachev angorya at openjdk.org
Tue Sep 5 18:50:48 UTC 2023


On Mon, 4 Sep 2023 13:15:47 GMT, Karthik P K <kpk at openjdk.org> wrote:

> Added test: `testChartLineAndAreaRemovedOnClearingSeries()` for `StackedAreaChart` to check if the line and fill elements gets removed from the series on clearing the series. This test is added similar to the tests added to `LineChart` and `AreaChart`.
> This test is not required for `BarChart`, `BubbleChart` and `ScatterChart` as no node will added to the series in these charts.

modules/javafx.controls/src/test/java/test/javafx/scene/chart/StackedAreaChartTest.java line 414:

> 412:     }
> 413: 
> 414:     @Test

minor: I would suggest adding a  comment explaining what the test does.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1231#discussion_r1316272301


More information about the openjfx-dev mailing list