summaryrefslogtreecommitdiff
path: root/chart2/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-10 10:17:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-10 15:56:04 +0200
commite6f53ed4157ddf116d4d0021b8bc962c112a1d0b (patch)
tree07cd1443539ca90513baaab08d16a54d254778ed /chart2/qa
parent41b5b34b439c451ac5dc4479eef6573a465eb00f (diff)
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 <caolanm@redhat.com>
Diffstat (limited to 'chart2/qa')
-rw-r--r--chart2/qa/extras/chart2import.cxx6
1 files changed, 5 insertions, 1 deletions
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()