sdext/source/pdfimport/test/tests.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 5e1ab6a203843f98966956e706c888fd1f89e284
Author:     Andras Timar <andras.ti...@collabora.com>
AuthorDate: Mon Jul 11 23:38:00 2022 +0200
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Tue Jul 12 09:08:12 2022 +0200

    sdext: these tests won't run without poppler
    
    Change-Id: I61deb7d5271bf87ac1bb3aad54c430ace8fd3f9f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136975
    Tested-by: Jenkins
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/sdext/source/pdfimport/test/tests.cxx 
b/sdext/source/pdfimport/test/tests.cxx
index 77d98999d0d3..193ec2227620 100644
--- a/sdext/source/pdfimport/test/tests.cxx
+++ b/sdext/source/pdfimport/test/tests.cxx
@@ -586,6 +586,7 @@ namespace
 
         void testTdf78427_FontFeatures()
         {
+#if HAVE_FEATURE_POPPLER
             rtl::Reference<pdfi::PDFIRawAdaptor> xAdaptor(new 
pdfi::PDFIRawAdaptor(OUString(), getComponentContext()));
             xAdaptor->setTreeVisitorFactory(createDrawTreeVisitorFactory());
 
@@ -712,10 +713,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());
 
@@ -745,10 +748,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());
 
@@ -778,6 +783,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);

Reply via email to