diff options
author | Vasily Melenchuk <Vasily.Melenchuk@cib.de> | 2018-06-08 11:19:36 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-06-08 16:52:58 +0200 |
commit | a4ab0c08e74746a96dcf23c3d50cd2e65ee31342 (patch) | |
tree | 10bc82cd387a5003ebfcf397926635e5802314ef | |
parent | 90d233b0311a208967a3e264820e00395bf057fb (diff) |
Row height tolerance level increase for unittest
Changes in tests done in 1e55a47e89a9d9d6cf9cb3993484022aaf2c097b
have issues on Mac machines and row height after recalculation
produces somewhat different results there making exact comparison
fail.
Change-Id: Ie5813c75116374437625e693f2e407f3b6cf58d1
Reviewed-on: https://gerrit.libreoffice.org/55454
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r-- | sc/qa/unit/helper/qahelper.cxx | 2 | ||||
-rw-r--r-- | sc/qa/unit/subsequent_filters-test.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx index ed660cfa7928..d414b1abfb96 100644 --- a/sc/qa/unit/helper/qahelper.cxx +++ b/sc/qa/unit/helper/qahelper.cxx @@ -755,7 +755,7 @@ void ScBootstrapFixture::miscRowHeightsTest( TestParam const * aTestValues, unsi CPPUNIT_ASSERT_EQUAL(aTestValues[ index ].pData[ i ].bOptimal, bOpt); } // Due to some minor differences on Mac this comparison is made bit fuzzy - CPPUNIT_ASSERT_LESSEQUAL( 3, abs( nHeight - nExpectedHeight ) ); + CPPUNIT_ASSERT_LESSEQUAL( 15, abs( nHeight - nExpectedHeight ) ); } } xShell->DoClose(); diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index d65a82b5878b..264040beb49a 100644 --- a/sc/qa/unit/subsequent_filters-test.cxx +++ b/sc/qa/unit/subsequent_filters-test.cxx @@ -2688,7 +2688,7 @@ void ScFiltersTest::testOptimalHeightReset() // be triggered ) *and* you can't delete cell contents. int nHeight = rDoc.GetRowHeight(nRow, nTab, false); // Due to some minor differences on Mac this comparison is made bit fuzzy - CPPUNIT_ASSERT_LESSEQUAL( 3, abs( nHeight - 701 ) ); + CPPUNIT_ASSERT_LESSEQUAL( 8, abs( nHeight - 701 ) ); ScDocFunc &rFunc = xDocSh->GetDocFunc(); |