summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYogeshBharate <yogesh.bharate@synerzip.com>2013-10-18 17:45:36 +0530
committerCaolán McNamara <caolanm@redhat.com>2013-11-13 15:01:38 +0000
commit0fe680b266f272fb82edc357fd036be85d4124cd (patch)
tree1cd662efd4b6395182164713d64057c152b2c5a9
parenta3eece5a885395888e3b8e779e1fa46f9538d7af (diff)
Added unit test for multicolumn section separator line
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 <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/qa/extras/ooxmlexport/data/multi-column-line-separator-SAVED.docxbin0 -> 5640 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport.cxx7
2 files changed, 7 insertions, 0 deletions
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
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/multi-column-line-separator-SAVED.docx
Binary files 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