Kaydet (Commit) 2813cfaa authored tarafından Eilidh McAdam's avatar Eilidh McAdam Kaydeden (comit) Miklos Vajna

tdf#60060: unit test for docx section protection export

Change-Id: I307466e7336bcf767ebb1ac3bb330cfb2130f84c
Reviewed-on: https://gerrit.libreoffice.org/15003Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst bb96ad0f
...@@ -741,6 +741,21 @@ DECLARE_OOXMLEXPORT_TEST(testTdf89774, "tdf89774.fodt") ...@@ -741,6 +741,21 @@ DECLARE_OOXMLEXPORT_TEST(testTdf89774, "tdf89774.fodt")
assertXPathContent(pXmlDoc, "/extended-properties:Properties/extended-properties:TotalTime", "1"); assertXPathContent(pXmlDoc, "/extended-properties:Properties/extended-properties:TotalTime", "1");
} }
DECLARE_OOXMLEXPORT_TEST(testSectionProtection, "sectionprot.odt")
{
if (xmlDocPtr pXmlDoc = parseExport("word/document.xml"))
{
assertXPath(pXmlDoc, "//w:formProt[1]", "val", "true");
assertXPath(pXmlDoc, "//w:formProt[2]", "val", "false");
}
if (xmlDocPtr pXmlSettings = parseExport("word/settings.xml"))
{
assertXPath(pXmlSettings, "/w:settings/w:documentProtection", "enforcement", "true");
assertXPath(pXmlSettings, "/w:settings/w:documentProtection", "edit", "forms");
}
}
CPPUNIT_PLUGIN_IMPLEMENT(); CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment