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:
parent
e515267602
commit
b61ca6f7bf
4 changed files with 409 additions and 569 deletions
|
@ -42,7 +42,6 @@ public:
|
||||||
const css::uno::Sequence<css::uno::Any>& rParams = {});
|
const css::uno::Sequence<css::uno::Any>& rParams = {});
|
||||||
|
|
||||||
void save(const OUString& rFilter, const char* pPassword = nullptr);
|
void save(const OUString& rFilter, const char* pPassword = nullptr);
|
||||||
void saveAndClose(const OUString& rFilter);
|
|
||||||
void saveAndReload(const OUString& rFilter, const char* pPassword = nullptr);
|
void saveAndReload(const OUString& rFilter, const char* pPassword = nullptr);
|
||||||
|
|
||||||
std::unique_ptr<vcl::pdf::PDFiumDocument> parsePDFExport(const OString& rPassword = OString());
|
std::unique_ptr<vcl::pdf::PDFiumDocument> parsePDFExport(const OString& rPassword = OString());
|
||||||
|
|
|
@ -12,6 +12,7 @@ $(eval $(call gb_CppunitTest_CppunitTest,sc_uicalc))
|
||||||
$(eval $(call gb_CppunitTest_use_externals,sc_uicalc, \
|
$(eval $(call gb_CppunitTest_use_externals,sc_uicalc, \
|
||||||
boost_headers \
|
boost_headers \
|
||||||
mdds_headers \
|
mdds_headers \
|
||||||
|
libxml2 \
|
||||||
))
|
))
|
||||||
|
|
||||||
$(eval $(call gb_CppunitTest_add_exception_objects,sc_uicalc, \
|
$(eval $(call gb_CppunitTest_add_exception_objects,sc_uicalc, \
|
||||||
|
@ -25,6 +26,7 @@ $(eval $(call gb_CppunitTest_use_libraries,sc_uicalc, \
|
||||||
i18nlangtag \
|
i18nlangtag \
|
||||||
sal \
|
sal \
|
||||||
sc \
|
sc \
|
||||||
|
scqahelper \
|
||||||
sfx \
|
sfx \
|
||||||
subsequenttest \
|
subsequenttest \
|
||||||
svl \
|
svl \
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -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)
|
void UnoApiTest::saveAndReload(const OUString& rFilter, const char* pPassword)
|
||||||
{
|
{
|
||||||
save(rFilter, pPassword);
|
save(rFilter, pPassword);
|
||||||
|
|
Loading…
Reference in a new issue