summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-02-18 03:31:33 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-02-18 11:10:13 +0000
commit251c7180a8fca78aefb71268a1b39ff7176a1d90 (patch)
treee2d1d6b84a46427ab4a4645bc32f9117181e54c0
parentaaea9beabcdfa16ffd36116591c5ebea25906b94 (diff)
add test for tdf#105486
Change-Id: If5b3f934b634be5ba928b319245ba33b690e038f Reviewed-on: https://gerrit.libreoffice.org/34397 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/qa/unit/data/xlsb/cond_format.xlsbbin0 -> 8253 bytes
-rw-r--r--sc/qa/unit/subsequent_filters-test.cxx18
2 files changed, 18 insertions, 0 deletions
diff --git a/sc/qa/unit/data/xlsb/cond_format.xlsb b/sc/qa/unit/data/xlsb/cond_format.xlsb
new file mode 100644
index 000000000000..256ec8c1aa42
--- /dev/null
+++ b/sc/qa/unit/data/xlsb/cond_format.xlsb
Binary files differ
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 9a06279fdd2c..af7577503aa7 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -158,6 +158,7 @@ public:
void testComplexIconSetsXLSX();
void testCondFormatParentXLSX();
void testColorScaleNumWithRefXLSX();
+ void testCondFormatXLSB();
void testOrcusODSStyleInterface();
@@ -289,6 +290,7 @@ public:
CPPUNIT_TEST(testComplexIconSetsXLSX);
CPPUNIT_TEST(testCondFormatParentXLSX);
CPPUNIT_TEST(testColorScaleNumWithRefXLSX);
+ CPPUNIT_TEST(testCondFormatXLSB);
CPPUNIT_TEST(testOrcusODSStyleInterface);
@@ -3828,6 +3830,22 @@ void ScFiltersTest::testTdf97598XLSX()
xDocSh->DoClose();
}
+void ScFiltersTest::testCondFormatXLSB()
+{
+ ScDocShellRef xDocSh = loadDoc("cond_format.", FORMAT_XLSB);
+
+ ScDocument& rDoc = xDocSh->GetDocument();
+ ScConditionalFormatList* pList = rDoc.GetCondFormList(0);
+ CPPUNIT_ASSERT(pList);
+
+ CPPUNIT_ASSERT_EQUAL(size_t(1), pList->size());
+ ScConditionalFormat* pFormat = pList->begin()->get();
+ CPPUNIT_ASSERT(pFormat);
+ CPPUNIT_ASSERT_EQUAL(size_t(1), pFormat->size());
+
+ xDocSh->DoClose();
+}
+
ScFiltersTest::ScFiltersTest()
: ScBootstrapFixture( "sc/qa/unit/data" )