[Libreoffice-commits] core.git: sw/qa
Szymon Kłos
szymon.klos at collabora.com
Thu Jul 13 09:37:24 UTC 2017
sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
New commits:
commit f8fdf861839d6a39f6d15f56a93108328ab8818c
Author: Szymon Kłos <szymon.klos at collabora.com>
Date: Wed Jul 12 15:49:16 2017 +0200
Make tdf108545_embeddedDocxIcon test universal
Change-Id: Ie0d0520bb725c082710c08aa30ecfe18d0c6cc6b
Reviewed-on: https://gerrit.libreoffice.org/39864
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index 1c41a5fe2813..7cbeb5cf3e68 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -26,6 +26,7 @@
#include <com/sun/star/drawing/PointSequenceSequence.hpp>
#include <com/sun/star/drawing/GraphicExportFilter.hpp>
#include <com/sun/star/drawing/EnhancedCustomShapeAdjustmentValue.hpp>
+#include <com/sun/star/embed/Aspects.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/style/BreakType.hpp>
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
@@ -1382,17 +1383,11 @@ DECLARE_OOXMLIMPORT_TEST(testTdf108995, "xml_space.docx")
paragraph->getString());
}
-#if defined(_WIN32)
DECLARE_OOXMLIMPORT_TEST(testTdf108545_embeddedDocxIcon, "tdf108545_embeddedDocxIcon.docx")
{
- // Check if document shows an icon for embedded docx document
- // Due to different fonts used for icon labels on each OS, current checksum is for Windows only
uno::Reference<document::XEmbeddedObjectSupplier2> xSupplier(getShape(1), uno::UNO_QUERY);
- uno::Reference<graphic::XGraphic> xGraphic = xSupplier->getReplacementGraphic();
- Graphic aGraphic(xGraphic);
- CPPUNIT_ASSERT_EQUAL(BitmapChecksum(SAL_CONST_UINT64(733876873106730813)), aGraphic.GetChecksum());
+ CPPUNIT_ASSERT_EQUAL(embed::Aspects::MSOLE_ICON, xSupplier->getAspect());
}
-#endif
DECLARE_OOXMLIMPORT_TEST(testTdf109053, "tdf109053.docx")
More information about the Libreoffice-commits
mailing list