chart2/qa/extras/chart2export.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 386771e25d35f846c16f9ba7ddbf135c3cba3565 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Mon Dec 30 00:26:37 2019 +0300 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Wed Jan 1 11:44:56 2020 +0100 Fix Chart2ExportTest::testAxisTitlePositionDOCX test for 150% UI scaling On Windows, with 150% UI scaling, the three values whose tolerance are fixed are 0.698077301660214, 0.80537743278209, and 0.0255266093575694 respectively. Change-Id: Ifae5eecff7fc8aa71bb2e15f3d82c934e51fa966 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85966 Tested-by: Jenkins Reviewed-by: Balazs Varga <balazs.varga...@gmail.com> Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/chart2/qa/extras/chart2export.cxx b/chart2/qa/extras/chart2export.cxx index 181645b437e3..62aa0764a69a 100644 --- a/chart2/qa/extras/chart2export.cxx +++ b/chart2/qa/extras/chart2export.cxx @@ -2023,15 +2023,15 @@ void Chart2ExportTest::testAxisTitlePositionDOCX() // test X Axis title position OUString aXVal = getXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:catAx/c:title/c:layout/c:manualLayout/c:x", "val"); double nX = aXVal.toDouble(); - CPPUNIT_ASSERT_DOUBLES_EQUAL(0.698208543867708, nX, 1e-7); + CPPUNIT_ASSERT_DOUBLES_EQUAL(0.698208543867708, nX, 1e-3); OUString aYVal = getXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:catAx/c:title/c:layout/c:manualLayout/c:y", "val"); double nY = aYVal.toDouble(); - CPPUNIT_ASSERT_DOUBLES_EQUAL(0.805152435594555, nY, 1e-7); + CPPUNIT_ASSERT_DOUBLES_EQUAL(0.805152435594555, nY, 1e-3); // test Y Axis title position aXVal = getXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:valAx/c:title/c:layout/c:manualLayout/c:x", "val"); nX = aXVal.toDouble(); - CPPUNIT_ASSERT_DOUBLES_EQUAL(0.0253953671500755, nX, 1e-7); + CPPUNIT_ASSERT_DOUBLES_EQUAL(0.0253953671500755, nX, 1e-3); aYVal = getXPath(pXmlDoc, "/c:chartSpace/c:chart/c:plotArea/c:valAx/c:title/c:layout/c:manualLayout/c:y", "val"); nY = aYVal.toDouble(); // just test the first two decimal digits because it is not perfect in docx yet. _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits