From f9453275d2710f9d3e9a4cc1285a57db334a5e2e Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Sun, 30 Sep 2012 15:11:05 +0200 Subject: sw: more testcase cleanup Change-Id: I39681fbf57c828e5d6e80ae7c3155f2f60410a1a --- sw/qa/extras/rtfimport/rtfimport.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'sw/qa') 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 xTextDocument(mxComponent, uno::UNO_QUERY); - uno::Reference xParaEnumAccess(xTextDocument->getText(), uno::UNO_QUERY); - uno::Reference xParaEnum = xParaEnumAccess->createEnumeration(); - uno::Reference 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(getParagraph(1), "ParaBackColor")); } void Test::testFdo38786() -- cgit