diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-06-06 17:23:55 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-06-06 17:31:25 +0200 |
commit | 016e1f888946b829563efd1e771d88b23c1730bf (patch) | |
tree | ca7d1c66dd2a131f507190e2d0fc29c8c5004fb5 | |
parent | c4ac853409afcb451bed0d044d36131a08e8e403 (diff) |
CppunitTest_sw_ooxmlexport: port testFdo66688 to textboxes
Change-Id: Iada46e037844b010959b153b5e895fd2be021d68
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 6 |
1 files 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<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") |