Kaydet (Commit) 6ce7a5bd authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: clean up one more test

Change-Id: Icfcdbedaf6b123fc726e2298ac47698940b36091
üst f9453275
...@@ -605,19 +605,12 @@ void Test::testFdo49501() ...@@ -605,19 +605,12 @@ void Test::testFdo49501()
uno::Reference<beans::XPropertySet> xStyle(getStyles("PageStyles")->getByName("Default"), uno::UNO_QUERY); uno::Reference<beans::XPropertySet> xStyle(getStyles("PageStyles")->getByName("Default"), uno::UNO_QUERY);
sal_Bool bIsLandscape = sal_False; CPPUNIT_ASSERT_EQUAL(sal_True, getProperty<sal_Bool>(xStyle, "IsLandscape"));
xStyle->getPropertyValue("IsLandscape") >>= bIsLandscape;
CPPUNIT_ASSERT_EQUAL(sal_True, bIsLandscape);
sal_Int32 nExpected(TWIP_TO_MM100(567)); sal_Int32 nExpected(TWIP_TO_MM100(567));
sal_Int32 nValue = 0; CPPUNIT_ASSERT_EQUAL(nExpected, getProperty<sal_Int32>(xStyle, "LeftMargin"));
xStyle->getPropertyValue("LeftMargin") >>= nValue; CPPUNIT_ASSERT_EQUAL(nExpected, getProperty<sal_Int32>(xStyle, "RightMargin"));
CPPUNIT_ASSERT_EQUAL(nExpected, nValue); CPPUNIT_ASSERT_EQUAL(nExpected, getProperty<sal_Int32>(xStyle, "TopMargin"));
xStyle->getPropertyValue("RightMargin") >>= nValue; CPPUNIT_ASSERT_EQUAL(nExpected, getProperty<sal_Int32>(xStyle, "BottomMargin"));
CPPUNIT_ASSERT_EQUAL(nExpected, nValue);
xStyle->getPropertyValue("TopMargin") >>= nValue;
CPPUNIT_ASSERT_EQUAL(nExpected, nValue);
xStyle->getPropertyValue("BottomMargin") >>= nValue;
CPPUNIT_ASSERT_EQUAL(nExpected, nValue);
} }
void Test::testFdo49271() void Test::testFdo49271()
......
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