summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2023-08-15 20:07:22 +0200
committerMiklos Vajna <vmiklos@collabora.com>2023-08-16 08:07:32 +0200
commit6cda5cd1b768f99e01e483f5e76092403aeb69a7 (patch)
treec20457fef8fab7d9aa09d45b5aedd1c1149c50e7
parentb363a689bf5b434113648373f98ee46aa00c09d7 (diff)
CppunitTest_sw_xhtmlexport: convert one test to use CPPUNIT_TEST_FIXTURE()
The tests in this suite only assert at the end of an import + export, so no need go via Writer-specific macros. This also keeps all code of a test in a single place, no need to trigger the preTest() magic. Change-Id: Ibf8c2dee99e02483642887ab74cc4f997389da3e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155727 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r--sw/qa/extras/htmlexport/xhtmlexport.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/qa/extras/htmlexport/xhtmlexport.cxx b/sw/qa/extras/htmlexport/xhtmlexport.cxx
index 299b5ff6b5c8..ce736d184927 100644
--- a/sw/qa/extras/htmlexport/xhtmlexport.cxx
+++ b/sw/qa/extras/htmlexport/xhtmlexport.cxx
@@ -155,8 +155,11 @@ DECLARE_HTMLEXPORT_TEST(testTdf107696, "tdf107696.odt")
!= -1);
}
-DECLARE_HTMLEXPORT_TEST(testTdf66305, "tdf66305.odt")
+CPPUNIT_TEST_FIXTURE(XHtmlExportTest, testTdf66305)
{
+ createSwDoc("tdf66305.odt");
+ setFilterOptions("UTF8");
+ save(mpFilter);
SvStream* pStream = maTempFile.GetStream(StreamMode::READ);
CPPUNIT_ASSERT(pStream);
sal_uInt64 nLength = pStream->TellEnd();