[Libreoffice-commits] core.git: sc/qa

Thorsten Behrens Thorsten.Behrens at CIB.de
Sat Jun 9 16:35:35 UTC 2018


 sc/qa/unit/subsequent_filters-test.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 47cd12eba409ba08c041b5405a3f606102848365
Author: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Date:   Sat Jun 9 15:21:40 2018 +0200

    adding some fuzz to row height tolerance tests
    
    Expanding on a4ab0c08e74746a96dcf23c3d50cd2e65ee31342 there's
    another test that on some tinderboxes was a few permille off.
    
    Adding 1% fuzz in comparison, seems we've now aquired some font
    layout instabilities across platforms.
    
    Change-Id: I7b068105c6ffad44b055e4dc37deb03c6040ab09
    Reviewed-on: https://gerrit.libreoffice.org/55509
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 264040beb49a..ab3b6165a9c6 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -4067,9 +4067,9 @@ void ScFiltersTest::testTdf62268()
 
     SCTAB nTab = 0;
     nHeight = rDoc.GetRowHeight(0, nTab, false);
-    CPPUNIT_ASSERT_EQUAL(256, nHeight);
+    CPPUNIT_ASSERT_LESSEQUAL( 3, abs( 256 - nHeight ) );
     nHeight = rDoc.GetRowHeight(1, nTab, false);
-    CPPUNIT_ASSERT_EQUAL(1905, nHeight);
+    CPPUNIT_ASSERT_LESSEQUAL( 19, abs( 1905 - nHeight ) );
 
     xDocSh->DoClose();
 }


More information about the Libreoffice-commits mailing list