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

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


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

New commits:
commit 5f8d60cde34302531642e75ed93e9621e170982a
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Apr 13 11:42:57 2020 +0200
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Mon Apr 13 14:28:09 2020 +0200

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

diff --git a/sc/qa/unit/data/xlsx/tdf113621.xlsx b/sc/qa/unit/data/xlsx/tdf113621.xlsx
new file mode 100644
index 000000000000..359bac4e7963
Binary files /dev/null and b/sc/qa/unit/data/xlsx/tdf113621.xlsx differ
diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx
index 4e6136aaa6b0..9ebe6e00ba39 100644
--- a/sc/qa/unit/subsequent_export-test.cxx
+++ b/sc/qa/unit/subsequent_export-test.cxx
@@ -205,6 +205,7 @@ public:
 
     void testTdf88657ODS();
     void testTdf41722();
+    void testTdf113621();
     void testEscapeCharInNumberFormatXLSX();
     void testNatNumInNumberFormatXLSX();
     void testExponentWithoutSignFormatXLSX();
@@ -346,6 +347,7 @@ public:
 
     CPPUNIT_TEST(testTdf88657ODS);
     CPPUNIT_TEST(testTdf41722);
+    CPPUNIT_TEST(testTdf113621);
     CPPUNIT_TEST(testEscapeCharInNumberFormatXLSX);
     CPPUNIT_TEST(testNatNumInNumberFormatXLSX);
     CPPUNIT_TEST(testExponentWithoutSignFormatXLSX);
@@ -4172,6 +4174,19 @@ void ScExportTest::testTdf41722()
     xDocSh->DoClose();
 }
 
+void ScExportTest::testTdf113621()
+{
+    ScDocShellRef xDocSh = loadDoc("tdf113621.", FORMAT_XLSX);
+    CPPUNIT_ASSERT(xDocSh.is());
+
+    xmlDocPtr pDoc = XPathHelper::parseExport2(*this, *xDocSh, m_xSFactory, "xl/worksheets/sheet1.xml", FORMAT_XLSX);
+    CPPUNIT_ASSERT(pDoc);
+
+    assertXPath(pDoc, "//x:conditionalFormatting", "sqref", "A1:A1048576");
+
+    xDocSh->DoClose();
+}
+
 void ScExportTest::testEscapeCharInNumberFormatXLSX()
 {
     ScDocShellRef xDocSh = loadDoc("tdf81939.", FORMAT_XLSX);


More information about the Libreoffice-commits mailing list