add test for tdf#99947

Change-Id: Ieede4a60587bf6a4d570761e0cf5fc59b74f9912
This commit is contained in:
Markus Mohrhard
2016-05-21 03:41:17 +02:00
parent 97ecd865c6
commit f56fb307d5
2 changed files with 13 additions and 0 deletions

Binary file not shown.

View File

@@ -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();