[Libreoffice-commits] core.git: sw/qa

Miklos Vajna vmiklos at collabora.co.uk
Fri Jun 6 08:32:19 PDT 2014


 sw/qa/extras/ooxmlexport/ooxmlexport.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 016e1f888946b829563efd1e771d88b23c1730bf
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Fri Jun 6 17:23:55 2014 +0200

    CppunitTest_sw_ooxmlexport: port testFdo66688 to textboxes
    
    Change-Id: Iada46e037844b010959b153b5e895fd2be021d68

diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index c4de6d1..f094099 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<text::XTextFramesSupplier> xFramesSupplier(mxComponent, uno::UNO_QUERY);
-    uno::Reference<container::XIndexAccess> xIndexAccess(xFramesSupplier->getTextFrames(), uno::UNO_QUERY);
-    uno::Reference<beans::XPropertySet> xFrame(xIndexAccess->getByIndex(0), uno::UNO_QUERY);
-    CPPUNIT_ASSERT_EQUAL( sal_Int32( 80 ), getProperty< sal_Int32 >( xFrame, "BackColorTransparency" ) );
+    uno::Reference<beans::XPropertySet> xFrame(getShape(2), uno::UNO_QUERY);
+    CPPUNIT_ASSERT_EQUAL( sal_Int32( 80 ), getProperty< sal_Int32 >( xFrame, "FillTransparence" ) );
 }
 
 DECLARE_OOXMLEXPORT_TEST(testFdo66773, "fdo66773.docx")


More information about the Libreoffice-commits mailing list