From 0fe680b266f272fb82edc357fd036be85d4124cd Mon Sep 17 00:00:00 2001 From: YogeshBharate Date: Fri, 18 Oct 2013 17:45:36 +0530 Subject: Added unit test for multicolumn section separator line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Unit test case to verify the multicolumn separator value. Conflicts: sw/qa/extras/ooxmlexport/ooxmlexport.cxx Change-Id: Ifd5b060a4981dda20df2f2ee5cbb2879f9ba0cdb Reviewed-on: https://gerrit.libreoffice.org/6318 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- .../data/multi-column-line-separator-SAVED.docx | Bin 0 -> 5640 bytes sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 7 +++++++ 2 files changed, 7 insertions(+) create mode 100644 sw/qa/extras/ooxmlexport/data/multi-column-line-separator-SAVED.docx diff --git a/sw/qa/extras/ooxmlexport/data/multi-column-line-separator-SAVED.docx b/sw/qa/extras/ooxmlexport/data/multi-column-line-separator-SAVED.docx new file mode 100644 index 000000000000..96458833b229 Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/multi-column-line-separator-SAVED.docx differ diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index 5c44dc818fd4..69c3b589a9b4 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -1532,6 +1532,13 @@ DECLARE_OOXML_TEST(testCharHighlight, "char_highlight.docx") } } +DECLARE_OOXML_TEST(testMultiColumnLineSeparator, "multi-column-line-separator-SAVED.docx") +{ + // Check for the Column Separator value.It should be FALSE as the document doesnt contains separator line. + xmlDocPtr pXmlDoc = parseExport(); + assertXPath(pXmlDoc, "/w:document/w:body/w:p[3]/w:pPr/w:sectPr/w:cols","sep","false"); +} + DECLARE_OOXML_TEST(testCustomXmlGrabBag, "customxml.docx") { // The problem was that item[n].xml and itemProps[n].xml and .rels files for item[n].xml -- cgit