sw/qa/extras/htmlexport/xhtmlexport.cxx | 12 ++++++++++++ sw/qa/extras/odfexport/data/tdf145361.odt |binary 2 files changed, 12 insertions(+)
New commits: commit 7ab9d4caddcf3e2b4e1f5541ebd85f4559bff615 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Nov 3 10:48:34 2021 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Nov 3 11:54:39 2021 +0100 tdf#145361: sw_xhtmlexport: Add unittest Change-Id: I4bbbdfa71f69ae2659922dce4b7445bcadc7d73a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124636 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/qa/extras/htmlexport/xhtmlexport.cxx b/sw/qa/extras/htmlexport/xhtmlexport.cxx index 17efc1607b57..b03f184818fd 100644 --- a/sw/qa/extras/htmlexport/xhtmlexport.cxx +++ b/sw/qa/extras/htmlexport/xhtmlexport.cxx @@ -70,6 +70,18 @@ DECLARE_HTMLEXPORT_TEST(testTdf118637, "tdf118637.odt") != -1); } +DECLARE_HTMLEXPORT_TEST(testTdf145361, "tdf145361.odt") +{ + // Without the fix in place, this test would have failed with + // - SfxBaseModel::impl_store <file:///tmp/lu66091ameq.tmp> failed: 0xc10(Error Area:Io Class:Write Code:16) + SvStream* pStream = maTempFile.GetStream(StreamMode::READ); + CPPUNIT_ASSERT(pStream); + sal_uInt64 nLength = pStream->TellEnd(); + OString aStream(read_uInt8s_ToOString(*pStream, nLength)); + CPPUNIT_ASSERT( + aStream.indexOf("List entry has<br/><span style=\"margin-left:0cm\"/>a line break") != -1); +} + DECLARE_HTMLEXPORT_TEST(testTdf142483, "tdf142483.odt") { SvStream* pStream = maTempFile.GetStream(StreamMode::READ); diff --git a/sw/qa/extras/odfexport/data/tdf145361.odt b/sw/qa/extras/odfexport/data/tdf145361.odt new file mode 100644 index 000000000000..e5a6a03c9c9c Binary files /dev/null and b/sw/qa/extras/odfexport/data/tdf145361.odt differ