[Libreoffice-commits] .: sw/qa

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Sep 30 06:17:03 PDT 2012


 sw/qa/extras/rtfimport/rtfimport.cxx |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

New commits:
commit f9453275d2710f9d3e9a4cc1285a57db334a5e2e
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Sun Sep 30 15:11:05 2012 +0200

    sw: more testcase cleanup
    
    Change-Id: I39681fbf57c828e5d6e80ae7c3155f2f60410a1a

diff --git a/sw/qa/extras/rtfimport/rtfimport.cxx b/sw/qa/extras/rtfimport/rtfimport.cxx
index 5258522..35a3e58 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()


More information about the Libreoffice-commits mailing list