From f2039cdbd827d60b8e0dbfa2e1d02dbb276514d6 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Thu, 16 Apr 2020 14:14:26 +0200 Subject: tdf#66305: xhtml: Add unittest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iea9d1c5972534eb7fef17464fda88f559e9a75f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92365 Tested-by: Jenkins Reviewed-by: Xisco Faulí --- sw/qa/extras/htmlexport/xhtmlexport.cxx | 12 ++++++++++++ sw/qa/extras/odfexport/data/tdf66305.odt | Bin 0 -> 12685 bytes 2 files changed, 12 insertions(+) create mode 100644 sw/qa/extras/odfexport/data/tdf66305.odt diff --git a/sw/qa/extras/htmlexport/xhtmlexport.cxx b/sw/qa/extras/htmlexport/xhtmlexport.cxx index 714c9825d759..1fdb1fd2cfee 100644 --- a/sw/qa/extras/htmlexport/xhtmlexport.cxx +++ b/sw/qa/extras/htmlexport/xhtmlexport.cxx @@ -79,6 +79,18 @@ DECLARE_HTMLEXPORT_TEST(testTdf107696, "tdf107696.odt") != -1); } +DECLARE_HTMLEXPORT_TEST(testTdf66305, "tdf66305.odt") +{ + 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("

Introduction

 

") + != -1); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/qa/extras/odfexport/data/tdf66305.odt b/sw/qa/extras/odfexport/data/tdf66305.odt new file mode 100644 index 000000000000..4a310a83d4e4 Binary files /dev/null and b/sw/qa/extras/odfexport/data/tdf66305.odt differ -- cgit