sw/qa/extras/htmlexport/xhtmlexport.cxx | 12 ++++++++++++ sw/qa/extras/odfexport/data/tdf66305.odt |binary 2 files changed, 12 insertions(+)
New commits: commit f2039cdbd827d60b8e0dbfa2e1d02dbb276514d6 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Apr 16 14:14:26 2020 +0200 Commit: Xisco Faulí <xiscofa...@libreoffice.org> CommitDate: Thu Apr 16 15:43:54 2020 +0200 tdf#66305: xhtml: Add unittest Change-Id: Iea9d1c5972534eb7fef17464fda88f559e9a75f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92365 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofa...@libreoffice.org> 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("<p class=\"P6\"><a href=\"#__RefHeading__82004_486970805\" " + "class=\"Internet_20_link\">Introduction</a></p><p class=\"P7\"> </p>") + != -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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits