From 016e1f888946b829563efd1e771d88b23c1730bf Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 6 Jun 2014 17:23:55 +0200 Subject: [PATCH] CppunitTest_sw_ooxmlexport: port testFdo66688 to textboxes Change-Id: Iada46e037844b010959b153b5e895fd2be021d68 --- sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index c4de6d1f2869..f094099e8830 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -843,10 +843,8 @@ DECLARE_OOXMLEXPORT_TEST(testFdo66688, "fdo66688.docx") { // The problem was that TextFrame imported and exported the wrong value for transparency // (was stored as 'FillTransparence' instead of 'BackColorTransparency' - uno::Reference xFramesSupplier(mxComponent, uno::UNO_QUERY); - uno::Reference xIndexAccess(xFramesSupplier->getTextFrames(), uno::UNO_QUERY); - uno::Reference xFrame(xIndexAccess->getByIndex(0), uno::UNO_QUERY); - CPPUNIT_ASSERT_EQUAL( sal_Int32( 80 ), getProperty< sal_Int32 >( xFrame, "BackColorTransparency" ) ); + uno::Reference xFrame(getShape(2), uno::UNO_QUERY); + CPPUNIT_ASSERT_EQUAL( sal_Int32( 80 ), getProperty< sal_Int32 >( xFrame, "FillTransparence" ) ); } DECLARE_OOXMLEXPORT_TEST(testFdo66773, "fdo66773.docx")