summaryrefslogtreecommitdiff
path: root/writerperfect/qa
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-11-27 08:26:34 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-11-27 12:39:23 +0100
commitcb682e03bd8f1ae852135dc7a68d6926d9356405 (patch)
treefc87e8a09caa27d744fc16c13ecd4880e6ffeeaa /writerperfect/qa
parentb0e226b58a261ccfe24137048c11bdf7af7c5265 (diff)
EPUB export: handle sequence fields
Just emit their expanded content for now. Change-Id: Ibca40d201dde9c8d6ef920b5213f786f64d7c027 Reviewed-on: https://gerrit.libreoffice.org/45313 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'writerperfect/qa')
-rw-r--r--writerperfect/qa/unit/EPUBExportTest.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/writerperfect/qa/unit/EPUBExportTest.cxx b/writerperfect/qa/unit/EPUBExportTest.cxx
index fdcafe827147..25d1a35c1873 100644
--- a/writerperfect/qa/unit/EPUBExportTest.cxx
+++ b/writerperfect/qa/unit/EPUBExportTest.cxx
@@ -581,6 +581,11 @@ void EPUBExportTest::testTextBox()
// This failed, image with caption was lost.
assertXPath(mpXmlDoc, "//xhtml:img", "class", "frame1");
+ // Expected spans:
+ // 1) break after the image
+ // 2) "Illustration "
+ // 3) The sequence field, this was missing (was ": foo" instead).
+ assertXPathContent(mpXmlDoc, "//xhtml:div/xhtml:p/xhtml:span[3]", "1");
}
CPPUNIT_TEST_SUITE_REGISTRATION(EPUBExportTest);