[Libreoffice-commits] core.git: sc/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Mon Mar 1 20:59:46 UTC 2021
sc/qa/unit/data/ods/tdf118086.ods |binary
sc/qa/unit/subsequent_filters-test.cxx | 20 ++++++++++++++++++++
2 files changed, 20 insertions(+)
New commits:
commit 8e3548af67218034c9fc816c011ae4b16e081e16
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Mar 1 16:31:58 2021 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Mon Mar 1 21:59:03 2021 +0100
tdf#118086: sc_subsequent_filters: Add unittest
Change-Id: I90d8a58ef4d7304a0c1788bf3f074bc9589965e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111759
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
diff --git a/sc/qa/unit/data/ods/tdf118086.ods b/sc/qa/unit/data/ods/tdf118086.ods
new file mode 100644
index 000000000000..00e2d93f7122
Binary files /dev/null and b/sc/qa/unit/data/ods/tdf118086.ods differ
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 8c0b8df909b8..c85f8d2dbdc5 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -208,6 +208,7 @@ public:
void testOptimalHeightReset();
void testCustomNumFormatHybridCellODS();
void testTdf121040();
+ void testTdf118086();
void testTdf118624();
void testTdf124454();
@@ -401,6 +402,7 @@ public:
CPPUNIT_TEST(testOptimalHeightReset);
CPPUNIT_TEST(testCustomNumFormatHybridCellODS);
CPPUNIT_TEST(testTdf121040);
+ CPPUNIT_TEST(testTdf118086);
CPPUNIT_TEST(testTdf118624);
CPPUNIT_TEST(testTdf124454);
CPPUNIT_TEST(testPrintRangeODS);
@@ -3278,6 +3280,24 @@ void ScFiltersTest::testTdf121040()
xDocSh->DoClose();
}
+void ScFiltersTest::testTdf118086()
+{
+ ScDocShellRef xDocSh = loadDoc(u"tdf118086.", FORMAT_ODS);
+ CPPUNIT_ASSERT_MESSAGE("Failed to load tdf118086.ods", xDocSh.is());
+
+ ScDocument& rDoc = xDocSh->GetDocument();
+
+ CPPUNIT_ASSERT_EQUAL(sal_uInt16(477), rDoc.GetRowHeight(2, static_cast<SCTAB>(0), false));
+
+ // Without the fix in place, this test would have failed with
+ // - Expected: 256
+ // - Actual : 477
+ CPPUNIT_ASSERT_EQUAL(sal_uInt16(256), rDoc.GetRowHeight(2, static_cast<SCTAB>(1), false));
+ CPPUNIT_ASSERT_EQUAL(sal_uInt16(256), rDoc.GetRowHeight(2, static_cast<SCTAB>(2), false));
+
+ xDocSh->DoClose();
+}
+
void ScFiltersTest::testTdf118624()
{
ScDocShellRef xDocSh = loadDoc(u"tdf118624.", FORMAT_ODS);
More information about the Libreoffice-commits
mailing list