From 958c08ad86d56839faf28a02097500bad7b1eb76 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Tue, 29 Nov 2022 12:29:43 +0100 Subject: sd: test exporting to odp/pptx with password protection exporting to ppt with password protection is not supported Change-Id: Ic04c0046b91b76688c947bb4ae3b3cf90046080c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143459 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- sd/qa/unit/export-tests.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'sd') diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx index a6efbee97477..4e781dd2d05c 100644 --- a/sd/qa/unit/export-tests.cxx +++ b/sd/qa/unit/export-tests.cxx @@ -61,6 +61,7 @@ public: void testFillBitmapUnused(); void testFdo84043(); void testTdf97630(); + void testImpressPasswordExport(); void testSwappedOutImageExport(); void testOOoXMLAnimations(); void testBnc480256(); @@ -111,6 +112,7 @@ public: CPPUNIT_TEST(testFillBitmapUnused); CPPUNIT_TEST(testFdo84043); CPPUNIT_TEST(testTdf97630); + CPPUNIT_TEST(testImpressPasswordExport); CPPUNIT_TEST(testSwappedOutImageExport); CPPUNIT_TEST(testOOoXMLAnimations); CPPUNIT_TEST(testBnc480256); @@ -512,6 +514,18 @@ void SdExportTest::testTdf97630() 1); } +void SdExportTest::testImpressPasswordExport() +{ + std::vector vFormat{ "impress8", "Impress Office Open XML" }; + + for (size_t i = 0; i < vFormat.size(); i++) + { + createSdImpressDoc(); + + saveAndReload(vFormat[i], /*pPassword*/ "test"); + } +} + void SdExportTest::testSwappedOutImageExport() { // Problem was with the swapped out images, which were not swapped in during export. -- cgit