[Libreoffice-commits] core.git: sw/qa
Miklos Vajna
vmiklos at collabora.co.uk
Fri Jan 29 11:44:21 PST 2016
sw/qa/extras/rtfexport/data/redline.rtf | 18 ++++++++++++++++++
sw/qa/extras/rtfexport/rtfexport.cxx | 6 ++++++
2 files changed, 24 insertions(+)
New commits:
commit 8ff66c71bb4da8d0e4454e250e480eada9fe226c
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Fri Jan 29 19:02:06 2016 +0100
CppunitTest_sw_rtfexport: add RtfExport::WriteRevTab() testcase
Change-Id: Ie091a38b34f14f6f641d591092bcbc38b0c548f6
Reviewed-on: https://gerrit.libreoffice.org/21910
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
Tested-by: Jenkins <ci at libreoffice.org>
diff --git a/sw/qa/extras/rtfexport/data/redline.rtf b/sw/qa/extras/rtfexport/data/redline.rtf
new file mode 100644
index 0000000..7f9742c
--- /dev/null
+++ b/sw/qa/extras/rtfexport/data/redline.rtf
@@ -0,0 +1,18 @@
+{\rtf1\ansi\deff3\adeflang1025
+{\*\revtbl
+{Unknown;}
+{Rebecca Lopez;}
+{Dorothy Jones;}
+}
+a
+{\deleted\revauthdel1\revdttmdel-1488851789 \rtlch \ltrch\loch
+b}
+c
+\par
+\pard\plain
+d
+{\deleted\revauthdel2\revdttmdel-1488851790 \rtlch \ltrch\loch
+e}
+f
+\par
+}
diff --git a/sw/qa/extras/rtfexport/rtfexport.cxx b/sw/qa/extras/rtfexport/rtfexport.cxx
index 0825034..4a90271 100644
--- a/sw/qa/extras/rtfexport/rtfexport.cxx
+++ b/sw/qa/extras/rtfexport/rtfexport.cxx
@@ -983,6 +983,12 @@ DECLARE_RTFEXPORT_TEST(testTdf96175, "tdf96175.rtf")
CPPUNIT_ASSERT_EQUAL(OUString("foobar"), getProperty<OUString>(xUserDefinedProperties, "Company"));
}
+DECLARE_RTFEXPORT_TEST(testRedline, "redline.rtf")
+{
+ CPPUNIT_ASSERT_EQUAL(OUString("Rebecca Lopez"), getProperty<OUString>(getRun(getParagraph(1), 2), "RedlineAuthor"));
+ CPPUNIT_ASSERT_EQUAL(OUString("Dorothy Jones"), getProperty<OUString>(getRun(getParagraph(2), 2), "RedlineAuthor"));
+}
+
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
More information about the Libreoffice-commits
mailing list