From: Debian LibreOffice Maintainers Date: Thu, 12 Dec 2019 21:52:05 +0000 (+0000) Subject: emfio-HAVE_MORE_FONTS X-Git-Tag: archive/raspbian/1%6.3.4-2+rpi1^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b031ab4b5c6f11669e964a34289f442c4a355b2c;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() {