chart2/qa/extras/chart2import.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit e6f53ed4157ddf116d4d0021b8bc962c112a1d0b Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Jul 10 10:17:11 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Jul 10 15:56:04 2020 +0200 testTdf134225 is unreliable I suspect because of MS Comic Sans availability Change-Id: Icdd661e96e1bca541b6504f1edf5f13142a186ae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98480 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/chart2/qa/extras/chart2import.cxx b/chart2/qa/extras/chart2import.cxx index 9d7b43274a6f..47aacb1af402 100644 --- a/chart2/qa/extras/chart2import.cxx +++ b/chart2/qa/extras/chart2import.cxx @@ -2539,16 +2539,20 @@ void Chart2ImportTest::testTdf134225() Reference<drawing::XShape> xDataPointLabel1(getShapeByName(xShapes, "CID/MultiClick/CID/D=0:CS=0:CT=0:Series=0:DataLabels=:DataLabel=0"), UNO_SET_THROW); CPPUNIT_ASSERT(xDataPointLabel1.is()); - awt::Point aLabelPosition1 = xDataPointLabel1->getPosition(); Reference<drawing::XShape> xDataPointLabel2(getShapeByName(xShapes, "CID/MultiClick/CID/D=0:CS=0:CT=0:Series=0:DataLabels=:DataLabel=1"), UNO_SET_THROW); CPPUNIT_ASSERT(xDataPointLabel2.is()); + +#if defined(_WIN32) + // font is MS Comic Sans which we can only assume is available under windows + awt::Point aLabelPosition1 = xDataPointLabel1->getPosition(); awt::Point aLabelPosition2 = xDataPointLabel2->getPosition(); // Check the distance between the position of the 1st data point label and the second one CPPUNIT_ASSERT_DOUBLES_EQUAL(1800, sal_Int32(aLabelPosition2.X - aLabelPosition1.X), 30); CPPUNIT_ASSERT_DOUBLES_EQUAL(2123, sal_Int32(aLabelPosition2.Y - aLabelPosition1.Y), 30); +#endif } void Chart2ImportTest::testTdf91250() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits