diff options
author | Eilidh McAdam <eilidh.mcadam@itomig.de> | 2015-04-17 22:33:59 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-21 08:05:21 +0000 |
commit | 362c1b188d92b29bfcdad9e6c0bad50954131f11 (patch) | |
tree | 53ca1f2ea71828266f1862fd4edff11eb71cfadb | |
parent | f10ab3425f02a4caea22b2bdbf60a731bd059419 (diff) |
tdf#78606: unittest for docx section header export bug
Checks that header is exported to DOCX when section is first
paragraph.
Change-Id: Ie8db2a372754208203f0df62137a3a0c3bbf39b9
Reviewed-on: https://gerrit.libreoffice.org/15370
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r-- | sw/qa/extras/ooxmlexport/data/sectionprot.odt | bin | 9382 -> 8612 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport5.cxx | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/sectionprot.odt b/sw/qa/extras/ooxmlexport/data/sectionprot.odt Binary files differindex 5a98a0be03ca..1effc19516c7 100644 --- a/sw/qa/extras/ooxmlexport/data/sectionprot.odt +++ b/sw/qa/extras/ooxmlexport/data/sectionprot.odt diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx index 49a1d66205bd..80c9c708beb9 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx @@ -779,6 +779,14 @@ DECLARE_OOXMLEXPORT_TEST(testSectionProtection, "sectionprot.odt") } } +DECLARE_OOXMLEXPORT_TEST(testSectionHeader, "sectionprot.odt") +{ + if (xmlDocPtr pXmlDoc = parseExport("word/document.xml")) + { + assertXPath(pXmlDoc, "//w:headerReference", 1); + } +} + CPPUNIT_PLUGIN_IMPLEMENT(); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |