From: Debian LibreOffice Maintainers Date: Fri, 9 Aug 2019 17:20:41 +0000 (+0100) Subject: emfio-HAVE_MORE_FONTS X-Git-Tag: archive/raspbian/1%6.3.0-2+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1622702bbd51b3a9b30c78d44b5ac5d16b1264a2;p=libreoffice.git emfio-HAVE_MORE_FONTS Gbp-Pq: Name emfio-HAVE_MORE_FONTS.diff --- diff --git a/emfio/qa/cppunit/emf/EmfImportTest.cxx b/emfio/qa/cppunit/emf/EmfImportTest.cxx index 30add1aec73..2adb7f69f86 100644 --- a/emfio/qa/cppunit/emf/EmfImportTest.cxx +++ b/emfio/qa/cppunit/emf/EmfImportTest.cxx @@ -24,6 +24,8 @@ #include +#include + namespace { @@ -47,8 +49,10 @@ class Test : public test::BootstrapFixture, public XmlTestTools public: CPPUNIT_TEST_SUITE(Test); CPPUNIT_TEST(testWorking); +#if HAVE_MORE_FONTS CPPUNIT_TEST(TestDrawString); CPPUNIT_TEST(TestDrawStringTransparent); +#endif CPPUNIT_TEST(TestDrawLine); CPPUNIT_TEST_SUITE_END(); }; @@ -93,6 +97,7 @@ void Test::testWorking() checkRectPrimitive(aSequenceRect); } +#if HAVE_MORE_FONTS void Test::TestDrawString() { // This unit checks for a correct import of an EMF+ file with only one DrawString Record @@ -134,6 +139,7 @@ void Test::TestDrawStringTransparent() assertXPath(pDocument, "/primitive2D/metafile/transform/mask/transform/unifiedtransparence/textsimpleportion", "fontcolor", "#0000ff"); assertXPath(pDocument, "/primitive2D/metafile/transform/mask/transform/unifiedtransparence/textsimpleportion", "familyname", "ARIAL"); } +#endif void Test::TestDrawLine() {