[Libreoffice-commits] core.git: sw/qa

Eilidh McAdam eilidh.mcadam at itomig.de
Tue Apr 21 01:08:49 PDT 2015


 sw/qa/extras/ooxmlexport/data/sectionprot.odt |binary
 sw/qa/extras/ooxmlexport/ooxmlexport5.cxx     |    8 ++++++++
 2 files changed, 8 insertions(+)

New commits:
commit 362c1b188d92b29bfcdad9e6c0bad50954131f11
Author: Eilidh McAdam <eilidh.mcadam at itomig.de>
Date:   Fri Apr 17 22:33:59 2015 +0100

    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 at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/sw/qa/extras/ooxmlexport/data/sectionprot.odt b/sw/qa/extras/ooxmlexport/data/sectionprot.odt
index 5a98a0b..1effc19 100644
Binary files a/sw/qa/extras/ooxmlexport/data/sectionprot.odt and b/sw/qa/extras/ooxmlexport/data/sectionprot.odt differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport5.cxx
index 49a1d66..80c9c708 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: */


More information about the Libreoffice-commits mailing list