diff options
author | Jaskaran Singh <jvsg1303@gmail.com> | 2016-08-06 13:33:42 +0530 |
---|---|---|
committer | Jaskaran Singh <jvsg1303@gmail.com> | 2016-08-06 14:14:28 +0530 |
commit | c2e220ff995cd4976c65bab1c34172dd4b303d1a (patch) | |
tree | 2ef2cfa1b7e98c1640ab42780c740763b8dad448 | |
parent | d76bd4688ffaed219557be53d41883ec089eda55 (diff) |
Add test for cell align in orcus interface(currently disabled)
Change-Id: Icbb139cc520e4afd84986d245fab5f157431fc4e
-rw-r--r-- | sc/qa/unit/data/xml/styles.xml | 2 | ||||
-rw-r--r-- | sc/qa/unit/subsequent_filters-test.cxx | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/sc/qa/unit/data/xml/styles.xml b/sc/qa/unit/data/xml/styles.xml index ef9c337ee766..b481219f5dd4 100644 --- a/sc/qa/unit/data/xml/styles.xml +++ b/sc/qa/unit/data/xml/styles.xml @@ -27,7 +27,7 @@ <style:style style:name="Name9" style:family="table-cell" style:parent-style-name="Default"> <style:text-properties style:text-line-through-style="solid" style:text-line-through-type="single" style:text-line-through-text="/"/> </style:style> - <style:style style:name="Name23" style:family="table-cell" style:parent-style-name="Text"> + <style:style style:name="Name10" style:family="table-cell" style:parent-style-name="Text"> <style:table-cell-properties style:vertical-align="middle"/> <style:paragraph-properties fo:text-align="start"/> </style:style> diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index 2bdf722c620b..6562b4ab2b90 100644 --- a/sc/qa/unit/subsequent_filters-test.cxx +++ b/sc/qa/unit/subsequent_filters-test.cxx @@ -2860,6 +2860,24 @@ void ScFiltersTest::testOrcusODSStyleInterface() pCrossedOutItem = static_cast<const SvxCrossedOutItem*>(pItem); CPPUNIT_ASSERT_MESSAGE("Style Name9 :Error with Strikeout", pCrossedOutItem->GetStrikeout() == STRIKEOUT_SLASH); + /* Test for Style Name "10" + * Has ver align, and hor align + */ + /* + pStyleSheet = pStyleSheetPool->FindCaseIns("Name10", SfxStyleFamily::Para); + CPPUNIT_ASSERT_MESSAGE("Style Name10 : Doesn't have Attribute hor justify, but it should have.", + pStyleSheet->GetItemSet().HasItem(ATTR_HOR_JUSTIFY, &pItem)); + + const SvxHorJustifyItem* pHorJustify = static_cast<const SvxHorJustifyItem*>(pItem); + CPPUNIT_ASSERT_MESSAGE("Style Name10 :Error with hor justify", pHorJustify->GetValue() == SVX_HOR_JUSTIFY_RIGHT); + + pStyleSheet = pStyleSheetPool->FindCaseIns("Name10", SfxStyleFamily::Para); + CPPUNIT_ASSERT_MESSAGE("Style Name10 : Doesn't have Attribute ver justify, but it should have.", + pStyleSheet->GetItemSet().HasItem(ATTR_VER_JUSTIFY, &pItem)); + + const SvxVerJustifyItem* pVerJustify = static_cast<const SvxVerJustifyItem*>(pItem); + CPPUNIT_ASSERT_MESSAGE("Style Name10 :Error with ver justify", pVerJustify->GetValue() == SVX_VER_JUSTIFY_CENTER); + */ } #endif |