Kaydet (Commit) 8c04e423 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

test for imported cond format range from ods

Change-Id: I08a876bfce8a6d9c0ff349b8956f0e13281afe5f
üst cb7ee824
...@@ -632,6 +632,21 @@ void testFormats_Impl(ScFiltersTest* pFiltersTest, ScDocument* pDoc, sal_Int32 n ...@@ -632,6 +632,21 @@ void testFormats_Impl(ScFiltersTest* pFiltersTest, ScDocument* pDoc, sal_Int32 n
pFiltersTest->createCSVPath(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("conditionalFormatting.")), aCSVFileName); pFiltersTest->createCSVPath(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("conditionalFormatting.")), aCSVFileName);
testCondFile(aCSVFileName, pDoc, 2); testCondFile(aCSVFileName, pDoc, 2);
} }
if( nFormat == ODS )
{
ScConditionalFormat* pCondFormat = pDoc->GetCondFormat(0,0,2);
const ScRangeList& rRange = pCondFormat->GetRange();
CPPUNIT_ASSERT(rRange == ScRange(0,0,2,3,0,2));
pCondFormat = pDoc->GetCondFormat(0,1,2);
const ScRangeList& rRange2 = pCondFormat->GetRange();
CPPUNIT_ASSERT(rRange2 == ScRange(0,1,2,0,1,2));
pCondFormat = pDoc->GetCondFormat(1,1,2);
const ScRangeList& rRange3 = pCondFormat->GetRange();
CPPUNIT_ASSERT(rRange3 == ScRange(1,1,2,3,1,2));
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment