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

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Fri Apr 10 21:57:47 UTC 2020


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

New commits:
commit 55ef1fdacb7b9d30a1443cfd5d88e3d735d6d95e
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Fri Apr 10 21:47:58 2020 +0200
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Fri Apr 10 23:57:11 2020 +0200

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

diff --git a/sc/qa/unit/data/xlsx/tdf73063.xlsx b/sc/qa/unit/data/xlsx/tdf73063.xlsx
new file mode 100644
index 000000000000..1b680aa2e799
Binary files /dev/null and b/sc/qa/unit/data/xlsx/tdf73063.xlsx differ
diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx
index 28c7d4645ac4..385130d6fe83 100644
--- a/sc/qa/unit/subsequent_export-test.cxx
+++ b/sc/qa/unit/subsequent_export-test.cxx
@@ -195,6 +195,7 @@ public:
     void testPreserveTextWhitespace2XLSX();
     void testTextDirectionXLSX();
     void testTdf129985();
+    void testTdf73063();
 
     void testRefStringXLSX();
     void testRefStringConfigXLSX();
@@ -331,6 +332,7 @@ public:
     CPPUNIT_TEST(testMatrixMultiplicationXLSX);
     CPPUNIT_TEST(testTextDirectionXLSX);
     CPPUNIT_TEST(testTdf129985);
+    CPPUNIT_TEST(testTdf73063);
 
     CPPUNIT_TEST(testRefStringXLSX);
     CPPUNIT_TEST(testRefStringConfigXLSX);
@@ -4021,6 +4023,19 @@ void ScExportTest::testTdf129985()
     xDocSh->DoClose();
 }
 
+void ScExportTest::testTdf73063()
+{
+    ScDocShellRef xDocSh = loadDoc("tdf73063.", FORMAT_XLSX);
+    CPPUNIT_ASSERT(xDocSh.is());
+
+    xmlDocPtr pDoc = XPathHelper::parseExport2(*this, *xDocSh, m_xSFactory, "xl/styles.xml", FORMAT_XLSX);
+    CPPUNIT_ASSERT(pDoc);
+
+    assertXPath(pDoc, "/x:styleSheet/x:numFmts/x:numFmt[2]", "formatCode", "[$-1C1A]dddd\", \"d\". \"mmmm\\ yyyy;@");
+
+    xDocSh->DoClose();
+}
+
 void ScExportTest::testTdf88657ODS()
 {
     ScDocShellRef xDocSh = loadDoc("tdf88657.", FORMAT_ODS);


More information about the Libreoffice-commits mailing list