sw/qa/extras/ooxmlimport/data/groupshape-trackedchanges.docx |binary sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 8 ++++++++ 2 files changed, 8 insertions(+)
New commits: commit 81b2b929078cdc0e85b20e96c828244e2384d54c Author: Miklos Vajna <vmik...@collabora.co.uk> Date: Sun Jun 8 12:44:56 2014 +0200 testcase for e6300f83d08fd959596551dcd660eb0fbfb248a6 Change-Id: Ia43c14665e6d1684d840da3516f69e951026c293 diff --git a/sw/qa/extras/ooxmlimport/data/groupshape-trackedchanges.docx b/sw/qa/extras/ooxmlimport/data/groupshape-trackedchanges.docx new file mode 100644 index 0000000..116721f Binary files /dev/null and b/sw/qa/extras/ooxmlimport/data/groupshape-trackedchanges.docx differ diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx index c7995f0..ea1910b 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx @@ -2190,6 +2190,14 @@ DECLARE_OOXMLIMPORT_TEST(testCaption, "caption.docx") CPPUNIT_ASSERT_EQUAL(awt::FontSlant_NONE, getProperty<awt::FontSlant>(xStyle, "CharPosture")); } +DECLARE_OOXMLIMPORT_TEST(testGroupshapeTrackedchanges, "groupshape-trackedchanges.docx") +{ + uno::Reference<drawing::XShapes> xGroup(getShape(1), uno::UNO_QUERY); + uno::Reference<text::XTextRange> xShape(xGroup->getByIndex(0), uno::UNO_QUERY); + // Shape text was completely missing, ensure inserted text is available. + CPPUNIT_ASSERT_EQUAL(OUString(" Inserted"), xShape->getString()); +} + #endif CPPUNIT_PLUGIN_IMPLEMENT(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits