diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-29 12:29:43 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-29 14:04:50 +0100 |
commit | 958c08ad86d56839faf28a02097500bad7b1eb76 (patch) | |
tree | 253c5276171bf83c9bb8dca4887e622c0c44d45c /sd | |
parent | 9022e69b4ceb3c8986a3b8637a661baeebef587a (diff) |
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/export-tests.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
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<OUString> 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. |