test the QPolygonF codepath

This commit is contained in:
KIU Shueng Chuan 2021-06-05 12:48:08 +08:00
parent c8e6920443
commit 8997cfa07c

View File

@ -25,6 +25,9 @@ def test_PlotCurveItem():
c.setData(data, connect='finite')
assertImageApproved(p, 'plotcurveitem/connectfinite', "Plot curve with finite points connected.")
c.setData(data, connect='finite', skipFiniteCheck=True)
assertImageApproved(p, 'plotcurveitem/connectfinite', "Plot curve with finite points connected using QPolygonF.")
c.setData(data, connect=np.array([1,1,1,0,1,1,0,0,1,0,0,0,1,1,0,0]))
assertImageApproved(p, 'plotcurveitem/connectarray', "Plot curve with connection array.")