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

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Fri Nov 27 14:36:48 UTC 2020


 sc/qa/unit/data/ods/tdf138507.ods      |binary
 sc/qa/unit/subsequent_filters-test.cxx |   14 ++++++++++++++
 2 files changed, 14 insertions(+)

New commits:
commit 33e0221cac467d32debe4fab6592517b0c1c195e
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Thu Nov 26 21:16:43 2020 +0100
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Fri Nov 27 15:36:08 2020 +0100

    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 at libreoffice.org>

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
Binary files /dev/null and b/sc/qa/unit/data/ods/tdf138507.ods 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);


More information about the Libreoffice-commits mailing list