summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bankston <daniel.e.bankston@gmail.com>2012-06-22 23:53:25 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-07-11 20:37:38 -0400
commit40732062925db3dff78e8c2d1612e403cb8463f6 (patch)
tree9072e4773f35eea5b9163c57871a9e4a6923ca9d
parentd40e653425fe04dcaf913c18ce9f9da39e62529d (diff)
Add unit test for ODS row height import
Change-Id: If8535f80d2f2cd57132d9d694d6bb2535df31c80
-rw-r--r--sc/qa/unit/subsequent_filters-test.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 60264b9974a3..37aa7e7a80e3 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -460,8 +460,10 @@ void testFormats_Impl(ScFiltersTest* pFiltersTest, ScDocument* pDoc, sal_Int32 n
pPattern = pDoc->GetPattern(1,3,1);
pPattern->GetFont(aFont, SC_AUTOCOL_RAW);
CPPUNIT_ASSERT_EQUAL_MESSAGE("font should be underlined with a dotted line", UNDERLINE_DOTTED, aFont.GetUnderline());
- //test case for proper import height of first row with styles and text (related to i53253)
- CPPUNIT_ASSERT_EQUAL( static_cast<sal_uInt16>(253), pDoc->GetRowHeight(0,1) );
+ //check row height import
+ CPPUNIT_ASSERT_EQUAL( static_cast<sal_uInt16>(256), pDoc->GetRowHeight(0,1) ); //0.178in
+ CPPUNIT_ASSERT_EQUAL( static_cast<sal_uInt16>(304), pDoc->GetRowHeight(1,1) ); //0.211in
+ CPPUNIT_ASSERT_EQUAL( static_cast<sal_uInt16>(477), pDoc->GetRowHeight(5,1) ); //0.3311in
//test case for i53253 where a cell has text with different styles and space between the text.
rtl::OUString aTestStr;
pDoc->GetString(3,0,1, aTestStr);