From e6f53ed4157ddf116d4d0021b8bc962c112a1d0b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 10 Jul 2020 10:17:11 +0100 Subject: testTdf134225 is unreliable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- chart2/qa/extras/chart2import.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'chart2/qa') 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 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 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() -- cgit