[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - sw/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 21 08:19:09 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 969379e9704fe124eec8ec0d7b945cfcf39b1c81
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed May 19 10:38:02 2021 +0200
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Fri May 21 10:18:37 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>
(cherry picked from commit 0655560f1b8aff45954682bb92498570f2000014)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115836
diff --git a/sw/qa/extras/htmlexport/xhtmlexport.cxx b/sw/qa/extras/htmlexport/xhtmlexport.cxx
index 85adfa2b7b49..738e16760c89 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