diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-09-30 15:11:05 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-09-30 15:16:40 +0200 |
commit | f9453275d2710f9d3e9a4cc1285a57db334a5e2e (patch) | |
tree | f4e2c146b5721825fc3d1a75bcf32cf99bf5579b /sw/qa | |
parent | 023ea2a73f17303fcc0895e807413b1e54ae7ec2 (diff) |
sw: more testcase cleanup
Change-Id: I39681fbf57c828e5d6e80ae7c3155f2f60410a1a
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/rtfimport/rtfimport.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx index 525852250907..35a3e581ce7e 100644 --- a/sw/qa/extras/rtfimport/rtfimport.cxx +++ b/sw/qa/extras/rtfimport/rtfimport.cxx @@ -575,14 +575,8 @@ void Test::testFdo47764() { load("fdo47764.rtf"); - uno::Reference<text::XTextDocument> xTextDocument(mxComponent, uno::UNO_QUERY); - uno::Reference<container::XEnumerationAccess> xParaEnumAccess(xTextDocument->getText(), uno::UNO_QUERY); - uno::Reference<container::XEnumeration> xParaEnum = xParaEnumAccess->createEnumeration(); - uno::Reference<beans::XPropertySet> xPropertySet(xParaEnum->nextElement(), uno::UNO_QUERY); - sal_Int32 nValue = 0; // \cbpat with zero argument should mean the auto (-1) color, not a default color (black) - xPropertySet->getPropertyValue("ParaBackColor") >>= nValue; - CPPUNIT_ASSERT_EQUAL(sal_Int32(-1), nValue); + CPPUNIT_ASSERT_EQUAL(sal_Int32(-1), getProperty<sal_Int32>(getParagraph(1), "ParaBackColor")); } void Test::testFdo38786() |