diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-01-07 21:05:37 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-01-08 09:06:23 +0100 |
commit | 74b30472e845123c93ec83172a458eae99a793a0 (patch) | |
tree | 1197f89660e8d3ad55ffc1d952c1314d5a535dcc /sw | |
parent | 634ed501db65da619ffbd9c19c29969a9023152c (diff) |
RTF filter: add URW testcase
lcov points out this was uncovered previously.
Change-Id: I831b7e6c2b475d2b3ddd64fb21714c3b6667832a
Reviewed-on: https://gerrit.libreoffice.org/65944
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/rtfexport/data/ulw.rtf | 1 | ||||
-rw-r--r-- | sw/qa/extras/rtfexport/rtfexport3.cxx | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/rtfexport/data/ulw.rtf b/sw/qa/extras/rtfexport/data/ulw.rtf new file mode 100644 index 000000000000..241898e47c17 --- /dev/null +++ b/sw/qa/extras/rtfexport/data/ulw.rtf @@ -0,0 +1 @@ +{\rtf1\ulw Aaa bbb.\par} diff --git a/sw/qa/extras/rtfexport/rtfexport3.cxx b/sw/qa/extras/rtfexport/rtfexport3.cxx index 2657c5494061..deb380f7e3de 100644 --- a/sw/qa/extras/rtfexport/rtfexport3.cxx +++ b/sw/qa/extras/rtfexport/rtfexport3.cxx @@ -218,6 +218,12 @@ DECLARE_RTFEXPORT_TEST(testTdf122424_textOutsideCellInATableRow, "tdf122424.rtf" CPPUNIT_ASSERT_EQUAL(OUString("cell3"), xCell->getString()); } +DECLARE_RTFEXPORT_TEST(testUlw, "ulw.rtf") +{ + // Test underlying in individual words mode. + CPPUNIT_ASSERT(getProperty<bool>(getRun(getParagraph(1), 1), "CharWordMode")); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |