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

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Mon Apr 13 12:27:01 UTC 2020


 sc/qa/unit/data/xlsx/tdf112936.xlsx   |binary
 sc/qa/unit/subsequent_export-test.cxx |   16 ++++++++++++++++
 2 files changed, 16 insertions(+)

New commits:
commit d2505dd4cc0960e97a5fca848996c8f1b043880d
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Apr 13 11:53:28 2020 +0200
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Mon Apr 13 14:26:20 2020 +0200

    tdf#112936: Add unittest
    
    Change-Id: I9c2f21491ef97f9a1b82f43cdb9b0b978689f70b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92110
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>

diff --git a/sc/qa/unit/data/xlsx/tdf112936.xlsx b/sc/qa/unit/data/xlsx/tdf112936.xlsx
new file mode 100644
index 000000000000..a292679e8b16
Binary files /dev/null and b/sc/qa/unit/data/xlsx/tdf112936.xlsx differ
diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx
index b75189fe6618..4e6136aaa6b0 100644
--- a/sc/qa/unit/subsequent_export-test.cxx
+++ b/sc/qa/unit/subsequent_export-test.cxx
@@ -218,6 +218,7 @@ public:
     void testTdf105272();
     void testTdf118990();
     void testTdf121612();
+    void testTdf112936();
     void testPivotCacheAfterExportXLSX();
     void testTdf114969XLSX();
     void testTdf115192XLSX();
@@ -358,6 +359,7 @@ public:
     CPPUNIT_TEST(testTdf105272);
     CPPUNIT_TEST(testTdf118990);
     CPPUNIT_TEST(testTdf121612);
+    CPPUNIT_TEST(testTdf112936);
     CPPUNIT_TEST(testPivotCacheAfterExportXLSX);
     CPPUNIT_TEST(testTdf114969XLSX);
     CPPUNIT_TEST(testTdf115192XLSX);
@@ -4403,6 +4405,20 @@ void ScExportTest::testTdf121612()
     xDocSh->DoClose();
 }
 
+void ScExportTest::testTdf112936()
+{
+    ScDocShellRef xDocSh = loadDoc("tdf112936.", FORMAT_XLSX);
+    CPPUNIT_ASSERT(xDocSh.is());
+
+    xmlDocPtr pDoc = XPathHelper::parseExport2(*this, *xDocSh, m_xSFactory, "xl/pivotCache/pivotCacheDefinition1.xml", FORMAT_XLSX);
+    CPPUNIT_ASSERT(pDoc);
+
+    assertXPath(pDoc, "//x:pivotCacheDefinition", "recordCount", "4");
+    assertXPath(pDoc, "//x:pivotCacheDefinition", "createdVersion", "3");
+
+    xDocSh->DoClose();
+}
+
 void ScExportTest::testXltxExport()
 {
     // Create new document


More information about the Libreoffice-commits mailing list