summaryrefslogtreecommitdiff
path: root/sw/qa/extras/odfexport/odfexport.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-12-27 12:11:43 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-27 12:13:51 +0100
commite4de5b40eb7220da2d337eb98d7905a98dc12c72 (patch)
tree6cdaed8791d5ce3a0b299fe4036b7ffa22fd8486 /sw/qa/extras/odfexport/odfexport.cxx
parent62391c28fae5099dd1f67c322867933fcb05bc9f (diff)
fdo#84714 ODT export: write <loext:table> inside <draw:custom-shape>
Change-Id: I543ec24f8825bcc7c35acc106402f4fc6b4b5d79
Diffstat (limited to 'sw/qa/extras/odfexport/odfexport.cxx')
-rw-r--r--sw/qa/extras/odfexport/odfexport.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx
index 41c4ed9d4e0e..194fc3487a77 100644
--- a/sw/qa/extras/odfexport/odfexport.cxx
+++ b/sw/qa/extras/odfexport/odfexport.cxx
@@ -400,6 +400,11 @@ DECLARE_ODFEXPORT_TEST(testTextboxRoundedCorners, "textbox-rounded-corners.odt")
uno::Reference<text::XTextTable> xTable(getParagraphOrTable(1, xText), uno::UNO_QUERY);
uno::Reference<text::XTextRange> xCell(xTable->getCellByName("A1"), uno::UNO_QUERY);
CPPUNIT_ASSERT_EQUAL(OUString("a"), xCell->getString());
+
+ // Table inside a textbox should be in the extension namespace.
+ if (xmlDocPtr pXmlDoc = parseExport("content.xml"))
+ // This failed, as draw:custom-shape had a table:table child.
+ assertXPath(pXmlDoc, "//draw:custom-shape/loext:table", "name", "Table1");
}
DECLARE_ODFEXPORT_TEST(testFdo86963, "fdo86963.odt")