summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-06-08 12:44:56 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-06-08 12:44:56 +0200
commit81b2b929078cdc0e85b20e96c828244e2384d54c (patch)
tree8228571723513bf83f179f5088a1f9f6687b26a8
parentUse MACOSX_APP_NAME (with dashes instead of spaces) instead of build-time name (diff)
downloadcore-81b2b929078cdc0e85b20e96c828244e2384d54c.tar.gz
core-81b2b929078cdc0e85b20e96c828244e2384d54c.zip
testcase for e6300f83d08fd959596551dcd660eb0fbfb248a6
Change-Id: Ia43c14665e6d1684d840da3516f69e951026c293
-rw-r--r--sw/qa/extras/ooxmlimport/data/groupshape-trackedchanges.docxbin0 -> 17667 bytes
-rw-r--r--sw/qa/extras/ooxmlimport/ooxmlimport.cxx8
2 files changed, 8 insertions, 0 deletions
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 000000000000..116721f39ecc
--- /dev/null
+++ b/sw/qa/extras/ooxmlimport/data/groupshape-trackedchanges.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index c7995f0bf7a3..ea1910ba20b0 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();