sw/qa/extras/odfexport/odfexport2.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 835fcbca7ac1d17ac586ce9f1519e1da67edaef8
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Mon Mar 3 13:58:51 2025 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Mar 3 17:29:22 2025 +0100

    tdf#165115: odf_export2: Add unittest
    
    Change-Id: I0cf346e1551d13595ee0c9c77710661bd893a937
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182432
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Jenkins

diff --git a/sw/qa/extras/odfexport/odfexport2.cxx 
b/sw/qa/extras/odfexport/odfexport2.cxx
index c0ecba170966..f43067922976 100644
--- a/sw/qa/extras/odfexport/odfexport2.cxx
+++ b/sw/qa/extras/odfexport/odfexport2.cxx
@@ -941,6 +941,13 @@ DECLARE_ODFEXPORT_TEST(testTdf143605, "tdf143605.odt")
     CPPUNIT_ASSERT_EQUAL(u"."_ustr, getProperty<OUString>(getParagraph(1), 
u"ListLabelString"_ustr));
 }
 
+CPPUNIT_TEST_FIXTURE(Test, testTdf165115)
+{
+    // Test saving a template file with password protection
+    createSwDoc();
+    saveAndReload("writer8_template", "test");
+}
+
 CPPUNIT_TEST_FIXTURE(Test, testTdf57317_autoListName)
 {
     createSwDoc("tdf57317_autoListName.odt");

Reply via email to