diff options
author | Jan Holesovsky <kendy@collabora.com> | 2013-11-20 13:39:18 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2013-11-20 13:44:00 +0100 |
commit | 919d4a2c5977bb6066e5baf6bb960a21cd385911 (patch) | |
tree | 00800c597a846f3d8d41327e2fcb32682b247a28 /sw | |
parent | 6e0aa783f4112791de336007343e064abc46324e (diff) |
Related bnc#837302: Don't introduce a redlined delete and the end of doc.
Change-Id: I5c3903a40b69867684707d33acbc92b1f80a93ec
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index 13245c3778d9..da830d6a2942 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -1170,6 +1170,17 @@ DECLARE_OOXMLEXPORT_TEST(testBnc837302, "bnc837302.docx") getRun(xParagraph, 3, "AAA"); // interestingly the 'Insert' is set on the _previous_ run CPPUNIT_ASSERT_EQUAL(OUString("Insert"), getProperty<OUString>(getRun(xParagraph, 2), "RedlineType")); + + // make sure we don't introduce a redlined delete in the 2nd paragraph + xParagraph = getParagraph(2); + OUString aProperty; + try + { + // throws when not present + aProperty = getProperty<OUString>(getRun(xParagraph, 1), "RedlineType"); + } + catch (const beans::UnknownPropertyException&) {} + CPPUNIT_ASSERT_EQUAL(OUString(), aProperty); } DECLARE_OOXMLEXPORT_TEST(testFdo68418, "fdo68418.docx") |