sw/qa/uitest/writer_tests4/exportToPDF.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit a5572b235af08036f9f2c743d3017cd393cd3f30 Author: Caolán McNamara <[email protected]> AuthorDate: Sat Dec 13 15:52:30 2025 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Mon Dec 15 13:29:18 2025 +0100 This uitest depends on enabled poppler support Change-Id: Id094a869429828f9684a04506e99b69ef6316eb6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195604 Reviewed-by: Michael Stahl <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/sw/qa/uitest/writer_tests4/exportToPDF.py b/sw/qa/uitest/writer_tests4/exportToPDF.py index 84105bd1e750..e845e5255c62 100644 --- a/sw/qa/uitest/writer_tests4/exportToPDF.py +++ b/sw/qa/uitest/writer_tests4/exportToPDF.py @@ -13,7 +13,7 @@ from uitest.uihelper.common import type_text from libreoffice.uno.propertyvalue import mkPropertyValues from org.libreoffice.unotest import systemPathToFileUrl from tempfile import TemporaryDirectory -import os.path +import os class exportToPDF(UITestCase): @@ -70,6 +70,7 @@ class exportToPDF(UITestCase): with self.ui_test.load_file(systemPathToFileUrl(xFilePath)) as document: - self.assertEqual("Hello World", document.DrawPages[0][0].String) + if os.getenv('ENABLE_POPPLER') == 'TRUE': + self.assertEqual("Hello World", document.DrawPages[0][0].String) # vim: set shiftwidth=4 softtabstop=4 expandtab:
