diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-12-30 01:11:24 +0300 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2020-01-07 10:56:27 +0100 |
commit | ab42dbf7e3072fa71af282d38bc751b5494d4718 (patch) | |
tree | aac179712c50c0f4072bf5f842b1aaa800005042 /chart2/qa/extras | |
parent | c0867c0605fd5e41e41e932fcdf094b3dc77fd03 (diff) |
Fix Chart2ImportTest::testAxisTitlePositionDOCX test for 150% UI scaling
On Windows, with 150% UI scaling, the four values for which tolerance
were added are 10638, 7159, 389, and 6631 respectively.
Change-Id: I4467cd465f55f9f6efe58c54c37cf8563bb42a30
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85967
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Tested-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'chart2/qa/extras')
-rw-r--r-- | chart2/qa/extras/chart2import.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/qa/extras/chart2import.cxx b/chart2/qa/extras/chart2import.cxx index ccb75649a3f1..c2f8e2a0afee 100644 --- a/chart2/qa/extras/chart2import.cxx +++ b/chart2/qa/extras/chart2import.cxx @@ -1567,8 +1567,8 @@ void Chart2ImportTest::testAxisTitlePositionDOCX() CPPUNIT_ASSERT(xAxisTitle.is()); awt::Point aPos = xAxisTitle->getPosition(); - CPPUNIT_ASSERT_EQUAL(sal_Int32(10640), static_cast<sal_Int32>(aPos.X)); - CPPUNIT_ASSERT_EQUAL(sal_Int32(7157), static_cast<sal_Int32>(aPos.Y)); + CPPUNIT_ASSERT_DOUBLES_EQUAL(10640, aPos.X, 2); + CPPUNIT_ASSERT_DOUBLES_EQUAL(7157, aPos.Y, 2); // test Y Axis title position uno::Reference< chart::XAxisYSupplier > xAxisYSupp(mxDiagram, uno::UNO_QUERY); @@ -1578,8 +1578,8 @@ void Chart2ImportTest::testAxisTitlePositionDOCX() CPPUNIT_ASSERT(xAxisTitle.is()); aPos = xAxisTitle->getPosition(); - CPPUNIT_ASSERT_EQUAL(sal_Int32(387), static_cast<sal_Int32>(aPos.X)); - CPPUNIT_ASSERT_EQUAL(sal_Int32(6378), static_cast<sal_Int32>(aPos.Y)); + CPPUNIT_ASSERT_DOUBLES_EQUAL(387, aPos.X, 2); + CPPUNIT_ASSERT_DOUBLES_EQUAL(6378, aPos.Y, 300); } void Chart2ImportTest::testCombinedChartAttachedAxisXLSX() |