[Libreoffice-commits] core.git: sc/qa
Markus Mohrhard
markus.mohrhard at googlemail.com
Sat May 21 02:21:51 UTC 2016
sc/qa/unit/data/ods/conditionalformat_rangelist.ods |binary
sc/qa/unit/subsequent_export-test.cxx | 13 +++++++++++++
2 files changed, 13 insertions(+)
New commits:
commit f56fb307d59897a33aa425bde06fab22ab3f8d0e
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sat May 21 03:41:17 2016 +0200
add test for tdf#99947
Change-Id: Ieede4a60587bf6a4d570761e0cf5fc59b74f9912
diff --git a/sc/qa/unit/data/ods/conditionalformat_rangelist.ods b/sc/qa/unit/data/ods/conditionalformat_rangelist.ods
new file mode 100644
index 0000000..169ee56
Binary files /dev/null and b/sc/qa/unit/data/ods/conditionalformat_rangelist.ods differ
diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx
index 73bd063..294ede0 100644
--- a/sc/qa/unit/subsequent_export-test.cxx
+++ b/sc/qa/unit/subsequent_export-test.cxx
@@ -98,6 +98,7 @@ public:
void testColorScaleExportXLSX();
void testDataBarExportODS();
void testDataBarExportXLSX();
+ void testConditionalFormatRangeListXLSX();
void testMiscRowHeightExport();
void testNamedRangeBugfdo62729();
void testRichTextExportODS();
@@ -180,6 +181,7 @@ public:
CPPUNIT_TEST(testColorScaleExportXLSX);
CPPUNIT_TEST(testDataBarExportODS);
CPPUNIT_TEST(testDataBarExportXLSX);
+ CPPUNIT_TEST(testConditionalFormatRangeListXLSX);
CPPUNIT_TEST(testMiscRowHeightExport);
CPPUNIT_TEST(testNamedRangeBugfdo62729);
CPPUNIT_TEST(testRichTextExportODS);
@@ -3291,6 +3293,17 @@ void ScExportTest::testTdf88657()
assertXPath(pDoc, "//number:fraction", "min-denominator-digits", "3");
}
+void ScExportTest::testConditionalFormatRangeListXLSX()
+{
+ ScDocShellRef xDocSh = loadDoc("conditionalformat_rangelist.", FORMAT_ODS);
+ CPPUNIT_ASSERT(xDocSh.Is());
+
+ xmlDocPtr pDoc = XPathHelper::parseExport(*xDocSh, m_xSFactory, "xl/worksheets/sheet1.xml", FORMAT_XLSX);
+ CPPUNIT_ASSERT(pDoc);
+
+ assertXPath(pDoc, "//x:conditionalFormatting", "sqref", "F4 F10");
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(ScExportTest);
CPPUNIT_PLUGIN_IMPLEMENT();
More information about the Libreoffice-commits
mailing list