summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-04-13 11:42:57 +0200
committerXisco Faulí <xiscofauli@libreoffice.org>2020-04-13 14:28:09 +0200
commit5f8d60cde34302531642e75ed93e9621e170982a (patch)
treebc206774ac1fc19a76594577a394cff39456124d /sc
parentd2505dd4cc0960e97a5fca848996c8f1b043880d (diff)
tdf#113621: Add unittest
Change-Id: Id733bfb64cd750f80a13b36e1937137354282787 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92109 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/data/xlsx/tdf113621.xlsxbin0 -> 14215 bytes
-rw-r--r--sc/qa/unit/subsequent_export-test.cxx15
2 files changed, 15 insertions, 0 deletions
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
--- /dev/null
+++ b/sc/qa/unit/data/xlsx/tdf113621.xlsx
Binary files 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);