summaryrefslogtreecommitdiff
path: root/sc/qa/unit
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2012-09-25 11:29:16 +0100
committerNoel Power <noel.power@suse.com>2012-09-25 11:30:13 +0100
commit4caa1baf0eecf422bb4f3b6101ecd2bc6fc3ebfa (patch)
tree6b53f738c75e41275a75b90b4e1f750c475d0d78 /sc/qa/unit
parent3f79d49058c41a92a2dfe0a284c4adbd1c1f96c3 (diff)
add new test ( disabled ) to show still unresolved problem :-(
Change-Id: I1469d95ae8492fd24094b52033e23f0318bc0190
Diffstat (limited to 'sc/qa/unit')
-rw-r--r--sc/qa/unit/subsequent_filters-test.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 38bc44a02a90..3428582f2765 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -644,7 +644,7 @@ void testFormats_Impl(ScFiltersTest* pFiltersTest, ScDocument* pDoc, sal_Int32 n
rtl::OUString sExpected("Excel Built-in Date");
rtl::OUString sResult = pStyleSheet->GetName();
CPPUNIT_ASSERT_EQUAL_MESSAGE("parent style for Sheet4.B2 is 'Excel Built-in Date'", sExpected, sResult);
- // check align
+ // check align of style
SfxItemSet& rItemSet = pStyleSheet->GetItemSet();
eHorJustify = static_cast<SvxCellHorJustify>(static_cast< const SvxHorJustifyItem& >(rItemSet.Get( ATTR_HOR_JUSTIFY ) ).GetValue() );
CPPUNIT_ASSERT_EQUAL_MESSAGE("'Excel Built-in Date' style should be aligned centre horizontally", SVX_HOR_JUSTIFY_CENTER, eHorJustify);
@@ -653,6 +653,12 @@ void testFormats_Impl(ScFiltersTest* pFiltersTest, ScDocument* pDoc, sal_Int32 n
sExpected = rtl::OUString("29");
CPPUNIT_ASSERT_EQUAL_MESSAGE("'Excel Built-in Date' style should just display month", sExpected, sResult );
+ // check actual align applied to cell, should be the same as
+ // the style
+ eHorJustify = static_cast<SvxCellHorJustify>(static_cast< const SvxHorJustifyItem& >(pPattern->GetItem( ATTR_HOR_JUSTIFY ) ).GetValue() );
+#if ENABLE_WHEN_FIXED
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("cell with 'Excel Built-in Date' style should be aligned centre horizontally", SVX_HOR_JUSTIFY_CENTER, eHorJustify);
+#endif
}
}