sw/qa/extras/ooxmlexport/data/fdo83428.docx |binary sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 9 +++++++++ 2 files changed, 9 insertions(+)
New commits: commit 2be527134fc132fcb6d294b1863823064282f061 Author: Heena Gupta <heena.h.gu...@ericsson.com> Date: Tue Sep 9 11:25:04 2014 +0530 fdo#83428 Add test case for custom property dropped in docx Reviewed on: https://gerrit.libreoffice.org/11346 Change-Id: I8afc0ae1351b4c8bb25f864040b99832b1bed3c1 diff --git a/sw/qa/extras/ooxmlexport/data/fdo83428.docx b/sw/qa/extras/ooxmlexport/data/fdo83428.docx new file mode 100644 index 0000000..9e9743a Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/fdo83428.docx differ diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index 3cda4ce..de91ec1 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -210,6 +210,15 @@ DECLARE_OOXMLEXPORT_TEST(testFDO83044, "fdo83044.docx") assertXPath(pXmlDoc, "/w:document/w:body/w:sdt/w:sdtPr/w:text", 1); } + +DECLARE_OOXMLEXPORT_TEST(testfdo83428, "fdo83428.docx") +{ + uno::Reference<document::XDocumentPropertiesSupplier> xDocumentPropertiesSupplier(mxComponent, uno::UNO_QUERY); + uno::Reference<document::XDocumentProperties> xProps(xDocumentPropertiesSupplier->getDocumentProperties()); + uno::Reference<beans::XPropertySet> xUDProps(xProps->getUserDefinedProperties(), uno::UNO_QUERY); + CPPUNIT_ASSERT_EQUAL(OUString("Document"), getProperty<OUString>(xUDProps, "Testing")); +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits