Kaydet (Commit) 5a2aba31 authored tarafından Vasily Melenchuk's avatar Vasily Melenchuk Kaydeden (comit) Thorsten Behrens

calc: extra unittest for rows autoheight on load

Change-Id: Ie5310d3c3d4fde59a0718dbda228c638b7e0c366
Reviewed-on: https://gerrit.libreoffice.org/71235
Tested-by: Jenkins
Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst 36534437
......@@ -247,6 +247,7 @@ public:
void testCharacterSetXLSXML();
void testTdf62268();
void testVBAMacroFunctionODS();
void testAutoheight2Rows();
CPPUNIT_TEST_SUITE(ScFiltersTest);
CPPUNIT_TEST(testBooleanFormatXLSX);
......@@ -385,6 +386,7 @@ public:
CPPUNIT_TEST(testCondFormatFormulaListenerXLSX);
CPPUNIT_TEST(testTdf62268);
CPPUNIT_TEST(testVBAMacroFunctionODS);
CPPUNIT_TEST(testAutoheight2Rows);
CPPUNIT_TEST_SUITE_END();
......@@ -4251,6 +4253,22 @@ void ScFiltersTest::testVBAMacroFunctionODS()
xDocSh->DoClose();
}
void ScFiltersTest::testAutoheight2Rows()
{
ScDocShellRef xDocSh = loadDoc("autoheight2rows.", FORMAT_ODS);
ScDocument& rDoc = xDocSh->GetDocument();
SCTAB nTab = 0;
int nHeight1 = rDoc.GetRowHeight(0, nTab, false);
int nHeight3 = rDoc.GetRowHeight(2, nTab, false);
// We will do relative comparison, because calculated autoheight
// can be different on different platforms
CPPUNIT_ASSERT_MESSAGE("Row #3 shoud be thinner than #1", nHeight3 < nHeight1);
xDocSh->DoClose();
}
ScFiltersTest::ScFiltersTest()
: ScBootstrapFixture( "sc/qa/unit/data" )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment