diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-29 10:15:43 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-29 11:25:08 +0100 |
commit | 236a96c7cff4cbf8a4ee2499739e7a938b6bae64 (patch) | |
tree | 7484379c5385a427dcaa7451bd787741e7f188e6 /test | |
parent | 7d11bbb906f3fe49b243c3acca1cffbb28915a6a (diff) |
sc: test exporting to xls/xlsx with password protection
Change-Id: I79ebc0d4f65c26aab8c04399a47ce1cbc631cf76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143432
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/unoapi_test.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/source/unoapi_test.cxx b/test/source/unoapi_test.cxx index 10ee4f01c06b..60c010c17e98 100644 --- a/test/source/unoapi_test.cxx +++ b/test/source/unoapi_test.cxx @@ -152,7 +152,7 @@ void UnoApiTest::save(const OUString& rFilter, const char* pPassword) if (pPassword) { - if (rFilter != "Office Open XML Text") + if (rFilter != "Office Open XML Text" && rFilter != "Calc Office Open XML") { aMediaDescriptor["Password"] <<= OUString::createFromAscii(pPassword); } @@ -164,6 +164,9 @@ void UnoApiTest::save(const OUString& rFilter, const char* pPassword) { "OOXPassword", uno::Any(sPassword) } }; aMediaDescriptor[utl::MediaDescriptor::PROP_ENCRYPTIONDATA] <<= aEncryptionData; + + // validation fails with "zip END header not found" + skipValidation(); } } |