From 8265e36cdcaa475282344c2e01bee5e323d0f0a0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 19 May 2019 08:00:55 +0200 Subject: increase delta for some starmath tests after commit 13894996601daf10d133f4a71eb0b26794d782bc Date: Sat May 4 21:46:31 2019 +0200 handle empty Rectangle better in starmath these test results now seem to depend on display scaling somewhat Change-Id: Ib998f8b033a80d16e00414b0ceded806ddadc917 Reviewed-on: https://gerrit.libreoffice.org/72545 Tested-by: Jenkins Reviewed-by: Noel Grandin --- starmath/qa/cppunit/test_node.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'starmath/qa') diff --git a/starmath/qa/cppunit/test_node.cxx b/starmath/qa/cppunit/test_node.cxx index 7ee441ec1941..1bcb32a0913e 100644 --- a/starmath/qa/cppunit/test_node.cxx +++ b/starmath/qa/cppunit/test_node.cxx @@ -85,8 +85,9 @@ void NodeTest::testTdf47813() long nWidthL = pNodeL->GetRect().GetWidth(); long nWidthR = pNodeR->GetRect().GetWidth(); CPPUNIT_ASSERT_DOUBLES_EQUAL(1.0, nWidthC/static_cast(nWidthA), 0.01); - CPPUNIT_ASSERT_DOUBLES_EQUAL(1.0, nWidthL/static_cast(nWidthA), 0.02); - CPPUNIT_ASSERT_DOUBLES_EQUAL(1.0, nWidthR/static_cast(nWidthA), 0.02); + // these values appear to change slightly with display scaling + CPPUNIT_ASSERT_DOUBLES_EQUAL(1.0, nWidthL/static_cast(nWidthA), 0.03); + CPPUNIT_ASSERT_DOUBLES_EQUAL(1.0, nWidthR/static_cast(nWidthA), 0.03); } void NodeTest::testTdf52225() -- cgit