diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-04-15 19:41:01 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-04-16 10:19:06 +0200 |
commit | f57962fe9a282a3acd0c824e283316b38fe7a130 (patch) | |
tree | dd2c2bce7eafcb58e7ddef95c92d72da73d2a4e0 /sw | |
parent | 00d4852eef26037f7ddf6778542a131e94c752b2 (diff) |
tdf#131812: xhtml: Add unittest
Change-Id: I70d0d70c62b92ff65aadebc0952a922ce21b56d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92315
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/htmlexport/xhtmlexport.cxx | 12 | ||||
-rw-r--r-- | sw/qa/extras/odfexport/data/tdf131812.odt | bin | 0 -> 8683 bytes |
2 files changed, 12 insertions, 0 deletions
diff --git a/sw/qa/extras/htmlexport/xhtmlexport.cxx b/sw/qa/extras/htmlexport/xhtmlexport.cxx index d9384e318728..bce7a1ea16c4 100644 --- a/sw/qa/extras/htmlexport/xhtmlexport.cxx +++ b/sw/qa/extras/htmlexport/xhtmlexport.cxx @@ -42,6 +42,18 @@ DECLARE_HTMLEXPORT_TEST(testImageEmbedding, "image-mimetype.odt") CPPUNIT_ASSERT(aValue.startsWith("data:image/svg+xml;base64")); } +DECLARE_HTMLEXPORT_TEST(testTdf131812, "tdf131812.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(".P1 { font-size:12pt; font-family:Liberation Serif; " + "writing-mode:horizontal-tb; direction:rtl; text-align:right ! important;}") + != -1); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/qa/extras/odfexport/data/tdf131812.odt b/sw/qa/extras/odfexport/data/tdf131812.odt Binary files differnew file mode 100644 index 000000000000..c2833ff25d11 --- /dev/null +++ b/sw/qa/extras/odfexport/data/tdf131812.odt |