add test for tdf#99947
Change-Id: Ieede4a60587bf6a4d570761e0cf5fc59b74f9912
This commit is contained in:
BIN
sc/qa/unit/data/ods/conditionalformat_rangelist.ods
Normal file
BIN
sc/qa/unit/data/ods/conditionalformat_rangelist.ods
Normal file
Binary file not shown.
@@ -98,6 +98,7 @@ public:
|
|||||||
void testColorScaleExportXLSX();
|
void testColorScaleExportXLSX();
|
||||||
void testDataBarExportODS();
|
void testDataBarExportODS();
|
||||||
void testDataBarExportXLSX();
|
void testDataBarExportXLSX();
|
||||||
|
void testConditionalFormatRangeListXLSX();
|
||||||
void testMiscRowHeightExport();
|
void testMiscRowHeightExport();
|
||||||
void testNamedRangeBugfdo62729();
|
void testNamedRangeBugfdo62729();
|
||||||
void testRichTextExportODS();
|
void testRichTextExportODS();
|
||||||
@@ -180,6 +181,7 @@ public:
|
|||||||
CPPUNIT_TEST(testColorScaleExportXLSX);
|
CPPUNIT_TEST(testColorScaleExportXLSX);
|
||||||
CPPUNIT_TEST(testDataBarExportODS);
|
CPPUNIT_TEST(testDataBarExportODS);
|
||||||
CPPUNIT_TEST(testDataBarExportXLSX);
|
CPPUNIT_TEST(testDataBarExportXLSX);
|
||||||
|
CPPUNIT_TEST(testConditionalFormatRangeListXLSX);
|
||||||
CPPUNIT_TEST(testMiscRowHeightExport);
|
CPPUNIT_TEST(testMiscRowHeightExport);
|
||||||
CPPUNIT_TEST(testNamedRangeBugfdo62729);
|
CPPUNIT_TEST(testNamedRangeBugfdo62729);
|
||||||
CPPUNIT_TEST(testRichTextExportODS);
|
CPPUNIT_TEST(testRichTextExportODS);
|
||||||
@@ -3291,6 +3293,17 @@ void ScExportTest::testTdf88657()
|
|||||||
assertXPath(pDoc, "//number:fraction", "min-denominator-digits", "3");
|
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_TEST_SUITE_REGISTRATION(ScExportTest);
|
||||||
|
|
||||||
CPPUNIT_PLUGIN_IMPLEMENT();
|
CPPUNIT_PLUGIN_IMPLEMENT();
|
||||||
|
Reference in New Issue
Block a user