[Libreoffice-commits] core.git: sw/qa
Justin Luth
justin_luth at sil.org
Thu Jul 28 09:34:57 UTC 2016
sw/qa/extras/ooxmlimport/ooxmlimport.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 11ded42ef7f056072e7bf1fb66a0e1ec5a556317
Author: Justin Luth <justin_luth at sil.org>
Date: Sat Jul 23 15:23:25 2016 +0300
unit test for docprotection only when enforced
Change-Id: I99cd5424855892846120c62b333d0e66aa3c7071
Reviewed-on: https://gerrit.libreoffice.org/27457
Reviewed-by: Justin Luth <justin_luth at sil.org>
Tested-by: Justin Luth <justin_luth at sil.org>
diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
index b904bdf..19266ef 100644
--- a/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
+++ b/sw/qa/extras/ooxmlimport/ooxmlimport.cxx
@@ -1749,6 +1749,13 @@ DECLARE_OOXMLIMPORT_TEST(testTdf75573, "tdf75573_page1frame.docx")
// the frame should be located near the bottom[23186]/center[2955] of the page
CPPUNIT_ASSERT(sal_Int32(20000) < getProperty<sal_Int32>(xPropertySet, "VertOrientPosition"));
CPPUNIT_ASSERT(sal_Int32(2500) < getProperty<sal_Int32>(xPropertySet, "HoriOrientPosition"));
+
+ css::uno::Reference<css::lang::XMultiServiceFactory> m_xTextFactory(mxComponent, uno::UNO_QUERY);
+ uno::Reference< beans::XPropertySet > xSettings(m_xTextFactory->createInstance("com.sun.star.document.Settings"), uno::UNO_QUERY);
+ uno::Any aProtect = xSettings->getPropertyValue("ProtectForm");
+ bool bProt = true;
+ aProtect >>= bProt;
+ CPPUNIT_ASSERT(!bProt);
}
DECLARE_OOXMLIMPORT_TEST(testFdo43093, "fdo43093.docx")
More information about the Libreoffice-commits
mailing list