sd/qa/unit/data/odp/transparent_background.odp |binary
 sd/qa/unit/export-tests.cxx                    |   19 +++++++++++++++++++
 2 files changed, 19 insertions(+)

New commits:
commit f3b51162b68acc7b22c2c5b41a8b29038153afab
Author: Katarina Behrens <katarina.behr...@cib.de>
Date:   Wed Jun 17 21:06:37 2015 +0200

    Bugfix test for tdf#88295
    
    Change-Id: Ic9c4330e9b14e43448302132b6c01a8d93001d2f

diff --git a/sd/qa/unit/data/odp/transparent_background.odp 
b/sd/qa/unit/data/odp/transparent_background.odp
new file mode 100644
index 0000000..ce599db
Binary files /dev/null and b/sd/qa/unit/data/odp/transparent_background.odp 
differ
diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx
index f82b523..4149a30 100644
--- a/sd/qa/unit/export-tests.cxx
+++ b/sd/qa/unit/export-tests.cxx
@@ -121,6 +121,7 @@ public:
     void testBulletColor();
     void testBulletMarginAndIndentation();
     void testParaMarginAndindentation();
+    void testTransparentBackground();
 
     void testFdo90607();
 #if !defined WNT
@@ -155,6 +156,7 @@ public:
     CPPUNIT_TEST(testBulletColor);
     CPPUNIT_TEST(testBulletMarginAndIndentation);
     CPPUNIT_TEST(testParaMarginAndindentation);
+    CPPUNIT_TEST(testTransparentBackground);
 
 #if !defined WNT
     CPPUNIT_TEST(testBnc822341);
@@ -333,6 +335,23 @@ void SdExportTest::testN828390_5()
     xDocShRef->DoClose();
 }
 
+void SdExportTest::testTransparentBackground()
+{
+   ::sd::DrawDocShellRef xDocShRef = 
loadURL(getURLFromSrc("/sd/qa/unit/data/odp/transparent_background.odp"), ODP);
+    xDocShRef = saveAndReload( xDocShRef, ODP );
+
+    SdDrawDocument *pDoc = xDocShRef->GetDoc();
+    CPPUNIT_ASSERT_MESSAGE( "no document", pDoc != NULL );
+    const SdrPage *pPage = pDoc->GetPage (1);
+    CPPUNIT_ASSERT_MESSAGE( "no page", pPage != NULL );
+
+    const SdrTextObj *pObj1 = dynamic_cast<SdrTextObj *>( pPage->GetObj( 0 ) );
+    checkFontAttributes<Color, SvxBackgroundColorItem>( pObj1, 
Color(COL_TRANSPARENT) );
+
+    const SdrTextObj *pObj2 = dynamic_cast<SdrTextObj *>( pPage->GetObj( 1 ) );
+    checkFontAttributes<Color, SvxBackgroundColorItem>( pObj2, 
Color(COL_YELLOW));
+}
+
 void SdExportTest::testMediaEmbedding()
 {
     ::sd::DrawDocShellRef xDocShRef = 
loadURL(getURLFromSrc("/sd/qa/unit/data/media_embedding.odp"), ODP);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to