diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-09-30 15:28:47 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-09-30 15:28:55 +0200 |
commit | 6ce7a5bd5709206f0f60f68d11c6040ad425b947 (patch) | |
tree | 8fae2e5d64c016a176c5b3696a86f0d4fc9c88c6 /sw | |
parent | f9453275d2710f9d3e9a4cc1285a57db334a5e2e (diff) |
sw: clean up one more test
Change-Id: Icfcdbedaf6b123fc726e2298ac47698940b36091
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/rtfimport/rtfimport.cxx | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx index 35a3e581ce7e..30e03ce6a4f2 100644 --- a/sw/qa/extras/rtfimport/rtfimport.cxx +++ b/sw/qa/extras/rtfimport/rtfimport.cxx @@ -605,19 +605,12 @@ void Test::testFdo49501() uno::Reference<beans::XPropertySet> xStyle(getStyles("PageStyles")->getByName("Default"), uno::UNO_QUERY); - sal_Bool bIsLandscape = sal_False; - xStyle->getPropertyValue("IsLandscape") >>= bIsLandscape; - CPPUNIT_ASSERT_EQUAL(sal_True, bIsLandscape); + CPPUNIT_ASSERT_EQUAL(sal_True, getProperty<sal_Bool>(xStyle, "IsLandscape")); sal_Int32 nExpected(TWIP_TO_MM100(567)); - sal_Int32 nValue = 0; - xStyle->getPropertyValue("LeftMargin") >>= nValue; - CPPUNIT_ASSERT_EQUAL(nExpected, nValue); - xStyle->getPropertyValue("RightMargin") >>= nValue; - CPPUNIT_ASSERT_EQUAL(nExpected, nValue); - xStyle->getPropertyValue("TopMargin") >>= nValue; - CPPUNIT_ASSERT_EQUAL(nExpected, nValue); - xStyle->getPropertyValue("BottomMargin") >>= nValue; - CPPUNIT_ASSERT_EQUAL(nExpected, nValue); + CPPUNIT_ASSERT_EQUAL(nExpected, getProperty<sal_Int32>(xStyle, "LeftMargin")); + CPPUNIT_ASSERT_EQUAL(nExpected, getProperty<sal_Int32>(xStyle, "RightMargin")); + CPPUNIT_ASSERT_EQUAL(nExpected, getProperty<sal_Int32>(xStyle, "TopMargin")); + CPPUNIT_ASSERT_EQUAL(nExpected, getProperty<sal_Int32>(xStyle, "BottomMargin")); } void Test::testFdo49271() |