summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-11-26 21:16:43 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2020-11-27 15:36:08 +0100
commit33e0221cac467d32debe4fab6592517b0c1c195e (patch)
tree3d43a47c74264c3491841f8a2953480f48832701
parentUpdate git submodules (diff)
downloadcore-33e0221cac467d32debe4fab6592517b0c1c195e.tar.gz
core-33e0221cac467d32debe4fab6592517b0c1c195e.zip
tdf#138507: sc_subsequent_filters: Add unittest
Change-Id: I1b9271d03c6bc61a63436054a74e455ad78bc68a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106712 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sc/qa/unit/data/ods/tdf138507.odsbin0 -> 22513 bytes
-rw-r--r--sc/qa/unit/subsequent_filters-test.cxx14
2 files changed, 14 insertions, 0 deletions
diff --git a/sc/qa/unit/data/ods/tdf138507.ods b/sc/qa/unit/data/ods/tdf138507.ods
new file mode 100644
index 000000000000..5b83a0dccd5a
--- /dev/null
+++ b/sc/qa/unit/data/ods/tdf138507.ods
Binary files differ
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 2323ee50b4c5..9c087549ec3e 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -248,6 +248,7 @@ public:
void testTdf132278();
void testTdf130959();
void testTdf129410();
+ void testTdf138507();
void testTdf131380();
void testTdf129681();
void testTdf111974XLSM();
@@ -427,6 +428,7 @@ public:
CPPUNIT_TEST(testTdf132278);
CPPUNIT_TEST(testTdf130959);
CPPUNIT_TEST(testTdf129410);
+ CPPUNIT_TEST(testTdf138507);
CPPUNIT_TEST(testTdf131380);
CPPUNIT_TEST(testTdf129681);
CPPUNIT_TEST(testTdf111974XLSM);
@@ -3737,6 +3739,18 @@ void ScFiltersTest::testTdf129410()
xDocSh->DoClose();
}
+void ScFiltersTest::testTdf138507()
+{
+ // Would fail to load without the fix
+ ScDocShellRef xDocSh = loadDoc("tdf138507.", FORMAT_ODS);
+ CPPUNIT_ASSERT_MESSAGE("Failed to open doc", xDocSh.is());
+
+ ScDocument& rDoc = xDocSh->GetDocument();
+ rDoc.CalcAll(); // perform hard re-calculation.
+
+ xDocSh->DoClose();
+}
+
void ScFiltersTest::testTdf131380()
{
ScDocShellRef xDocSh = loadDoc("tdf131380.", FORMAT_XLSX);