summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorSzabolcs Toth <szabolcs450@gmail.com>2019-10-10 13:22:11 +0200
committerLászló Németh <nemeth@numbertext.org>2019-10-16 18:19:13 +0200
commitd0a7ed1052d0affe067e534b72a61461ca7058f1 (patch)
tree14052144a00549574f2288f4ea1c163313fe780e /sw/qa
parent3e23ffa1d9d062da87e37e0400f1e42903e19154 (diff)
tdf#112103 DOCX cleanup: don't export redundant table bkground color "auto"
because this is the default value of table cells. Change-Id: I4f45f32f24474f4d9c6bbc91fcd62cb66f008e5d Reviewed-on: https://gerrit.libreoffice.org/80601 Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf112103_tablebgnofill.docxbin0 -> 19239 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlw14export.cxx8
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf112103_tablebgnofill.docx b/sw/qa/extras/ooxmlexport/data/tdf112103_tablebgnofill.docx
new file mode 100644
index 000000000000..cee8756ec3b8
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf112103_tablebgnofill.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlw14export.cxx b/sw/qa/extras/ooxmlexport/ooxmlw14export.cxx
index d6f13dfc55a7..f6939083c456 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlw14export.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlw14export.cxx
@@ -642,6 +642,14 @@ DECLARE_OOXMLEXPORT_TEST(Test_TextEffects_InStyleXml, "TextEffects_InStyle.docx"
}
}
+DECLARE_OOXMLEXPORT_TEST(Test_no_tag_if_no_fill, "tdf112103_tablebgnofill.docx")
+{
+ xmlDocPtr pXmlDoc = parseExport("word/document.xml");
+ if (!pXmlDoc)
+ return;
+
+ assertXPath(pXmlDoc, "/w:document/w:body/w:tbl/w:tr/w:tc/w:tcPr/w:shd", 0);
+}
CPPUNIT_PLUGIN_IMPLEMENT();