summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2022-07-11 23:38:00 +0200
committerAndras Timar <andras.timar@collabora.com>2022-07-12 09:08:25 +0200
commit0d3bc933855232bd9fdb41c98f1fb414c4d80a86 (patch)
treed7b56b0b3a63788aeedd34df0c83a72eb4cf6049
parentfe4468db8de113d2844a8733dd094506af778b51 (diff)
sdext: these tests won't run without poppler
Change-Id: I61deb7d5271bf87ac1bb3aad54c430ace8fd3f9f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136966 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--sdext/source/pdfimport/test/tests.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/test/tests.cxx b/sdext/source/pdfimport/test/tests.cxx
index c8c3b9e28a8f..cbca5c30122d 100644
--- a/sdext/source/pdfimport/test/tests.cxx
+++ b/sdext/source/pdfimport/test/tests.cxx
@@ -585,6 +585,7 @@ namespace
void testTdf78427_FontFeatures()
{
+#if HAVE_FEATURE_POPPLER
rtl::Reference<pdfi::PDFIRawAdaptor> xAdaptor(new pdfi::PDFIRawAdaptor(OUString(), getComponentContext()));
xAdaptor->setTreeVisitorFactory(createDrawTreeVisitorFactory());
@@ -711,10 +712,12 @@ namespace
assertXPath(pXmlDoc, xpath, "font-weight", "normal");
assertXPathNoAttribute(pXmlDoc, xpath, "font-style");
assertXPath(pXmlDoc, xpath, "text-outline", "true");
+#endif
}
void testTdf78427_FontWeight_MyraidProSemibold() // Related to attachment 155937.
{
+#if HAVE_FEATURE_POPPLER
rtl::Reference<pdfi::PDFIRawAdaptor> xAdaptor(new pdfi::PDFIRawAdaptor(OUString(), getComponentContext()));
xAdaptor->setTreeVisitorFactory(createDrawTreeVisitorFactory());
@@ -744,10 +747,12 @@ namespace
"\"]/style:text-properties";
// the font-weight and font-style should be 300 (Light)
assertXPath(pXmlDoc, xpath, "font-weight", "300");
+#endif
}
void testTdf143959_nameFromFontFile()
{
+#if HAVE_FEATURE_POPPLER
rtl::Reference<pdfi::PDFIRawAdaptor> xAdaptor(new pdfi::PDFIRawAdaptor(OUString(), getComponentContext()));
xAdaptor->setTreeVisitorFactory(createDrawTreeVisitorFactory());
@@ -777,6 +782,7 @@ namespace
getXPath(pXmlDoc, xpath, "font-family").replaceAll(u" ", u""));
CPPUNIT_ASSERT_EQUAL(OUString("bold"),
getXPath(pXmlDoc, xpath, "font-weight"));
+#endif
}
CPPUNIT_TEST_SUITE(PDFITest);