diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-12-30 00:26:37 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-01-01 11:44:56 +0100 |
commit | 386771e25d35f846c16f9ba7ddbf135c3cba3565 (patch) | |
tree | 8a2fb24817ca50e10bb6e9b37677d6a0d5ace038 /chart2/qa | |
parent | 3dd79ff0bb9fcbac7338447785da8e1aff53434e (diff) |
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.varga991@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'chart2/qa')
-rw-r--r-- | chart2/qa/extras/chart2export.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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. |