sw/qa/extras/ooxmlexport/ooxmlexport4.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit e148a58b6d60d2f2587ce264e0f5f1fb73879231
Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
Date:   Thu Apr 26 15:54:58 2018 +0900

    extend test, so it checks the retireved graphic is as expected
    
    Change-Id: I49f852681a5d3541da23d1d590cac14b6e4f8e6a
    Reviewed-on: https://gerrit.libreoffice.org/53491
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk>

diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
index f51d918c721e..6232c9f8e7ee 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport4.cxx
@@ -183,6 +183,9 @@ DECLARE_OOXMLEXPORT_TEST(testTextBoxPictureFill, 
"textbox_picturefill.docx")
     CPPUNIT_ASSERT(xGraphic.is());
     Graphic aGraphic(xGraphic);
     CPPUNIT_ASSERT(aGraphic);
+    CPPUNIT_ASSERT(aGraphic.GetSizeBytes() > 0L);
+    CPPUNIT_ASSERT_EQUAL(447L, aGraphic.GetSizePixel().Width());
+    CPPUNIT_ASSERT_EQUAL(528L, aGraphic.GetSizePixel().Height());
 }
 
 DECLARE_OOXMLEXPORT_TEST(testFDO73034, "FDO73034.docx")
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to