[Libreoffice-commits] core.git: sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Wed May 19 09:38:08 UTC 2021
sw/qa/extras/htmlexport/xhtmlexport.cxx | 16 ++++++++++++++++
sw/qa/extras/odfexport/data/tdf118637.odt |binary
2 files changed, 16 insertions(+)
New commits:
commit 0655560f1b8aff45954682bb92498570f2000014
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed May 19 10:38:02 2021 +0200
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed May 19 11:37:30 2021 +0200
tdf#118637: sw_xhtmlexport: Add unittest
Change-Id: I110404a73ccdbffed788009730967b0efbbaf51f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115785
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
diff --git a/sw/qa/extras/htmlexport/xhtmlexport.cxx b/sw/qa/extras/htmlexport/xhtmlexport.cxx
index f60d8b912fad..4fa48cf77cdb 100644
--- a/sw/qa/extras/htmlexport/xhtmlexport.cxx
+++ b/sw/qa/extras/htmlexport/xhtmlexport.cxx
@@ -54,6 +54,22 @@ DECLARE_HTMLEXPORT_TEST(testTdf131812, "tdf131812.odt")
!= -1);
}
+DECLARE_HTMLEXPORT_TEST(testTdf118637, "tdf118637.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(
+ "<div style=\"display:inline; position:relative; left:0cm;\">The formula </div>")
+ != -1);
+ CPPUNIT_ASSERT(
+ aStream.indexOf(
+ "<div style=\"display:inline; position:relative; left:0cm;\">should be inline.</div>")
+ != -1);
+}
+
DECLARE_HTMLEXPORT_TEST(testTdf107696, "tdf107696.odt")
{
SvStream* pStream = maTempFile.GetStream(StreamMode::READ);
diff --git a/sw/qa/extras/odfexport/data/tdf118637.odt b/sw/qa/extras/odfexport/data/tdf118637.odt
new file mode 100644
index 000000000000..c2a8b4f53035
Binary files /dev/null and b/sw/qa/extras/odfexport/data/tdf118637.odt differ
More information about the Libreoffice-commits
mailing list