Kaydet (Commit) 1aad8c1e authored tarafından Markus Mohrhard's avatar Markus Mohrhard

enable the cond format import test also for xls and xlsx

Change-Id: I04d743ef9f38f4f65ba912f34ac641ea7031aed2
üst 8c04e423
...@@ -633,20 +633,17 @@ void testFormats_Impl(ScFiltersTest* pFiltersTest, ScDocument* pDoc, sal_Int32 n ...@@ -633,20 +633,17 @@ void testFormats_Impl(ScFiltersTest* pFiltersTest, ScDocument* pDoc, sal_Int32 n
testCondFile(aCSVFileName, pDoc, 2); testCondFile(aCSVFileName, pDoc, 2);
} }
if( nFormat == ODS ) ScConditionalFormat* pCondFormat = pDoc->GetCondFormat(0,0,2);
{ const ScRangeList& rRange = pCondFormat->GetRange();
ScConditionalFormat* pCondFormat = pDoc->GetCondFormat(0,0,2); CPPUNIT_ASSERT(rRange == ScRange(0,0,2,3,0,2));
const ScRangeList& rRange = pCondFormat->GetRange();
CPPUNIT_ASSERT(rRange == ScRange(0,0,2,3,0,2));
pCondFormat = pDoc->GetCondFormat(0,1,2); pCondFormat = pDoc->GetCondFormat(0,1,2);
const ScRangeList& rRange2 = pCondFormat->GetRange(); const ScRangeList& rRange2 = pCondFormat->GetRange();
CPPUNIT_ASSERT(rRange2 == ScRange(0,1,2,0,1,2)); CPPUNIT_ASSERT(rRange2 == ScRange(0,1,2,0,1,2));
pCondFormat = pDoc->GetCondFormat(1,1,2); pCondFormat = pDoc->GetCondFormat(1,1,2);
const ScRangeList& rRange3 = pCondFormat->GetRange(); const ScRangeList& rRange3 = pCondFormat->GetRange();
CPPUNIT_ASSERT(rRange3 == ScRange(1,1,2,3,1,2)); 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