CppunitTest_sc_uicalc: inherit from ScModelTestBase

so createScDoc handles the dispose of new documents
saveAndClose can go now

Change-Id: I7f88ef6ff9aaece72461489a31b0ef456ce5e170
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142781
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2022-11-16 16:59:38 +01:00
parent e515267602
commit b61ca6f7bf
4 changed files with 409 additions and 569 deletions

View file

@ -42,7 +42,6 @@ public:
const css::uno::Sequence<css::uno::Any>& rParams = {});
void save(const OUString& rFilter, const char* pPassword = nullptr);
void saveAndClose(const OUString& rFilter);
void saveAndReload(const OUString& rFilter, const char* pPassword = nullptr);
std::unique_ptr<vcl::pdf::PDFiumDocument> parsePDFExport(const OString& rPassword = OString());

View file

@ -12,6 +12,7 @@ $(eval $(call gb_CppunitTest_CppunitTest,sc_uicalc))
$(eval $(call gb_CppunitTest_use_externals,sc_uicalc, \
boost_headers \
mdds_headers \
libxml2 \
))
$(eval $(call gb_CppunitTest_add_exception_objects,sc_uicalc, \
@ -25,6 +26,7 @@ $(eval $(call gb_CppunitTest_use_libraries,sc_uicalc, \
i18nlangtag \
sal \
sc \
scqahelper \
sfx \
subsequenttest \
svl \

File diff suppressed because it is too large Load diff

View file

@ -190,14 +190,6 @@ void UnoApiTest::save(const OUString& rFilter, const char* pPassword)
}
}
void UnoApiTest::saveAndClose(const OUString& rFilter)
{
save(rFilter, nullptr);
mxComponent->dispose();
mxComponent.clear();
}
void UnoApiTest::saveAndReload(const OUString& rFilter, const char* pPassword)
{
save(rFilter, pPassword);