summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-09-26 10:25:17 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-09-26 13:58:56 +0200
commit616fc7a79f35f4db65b58d34ff6d6e806ff9a6ef (patch)
treeb2297ccc801504b493f926b66a58a4fa16aba469 /writerperfect
parent3823697d99b28592d8923e099b6aab577d5cd339 (diff)
EPUB export: test not loosing nested list content
Just focus on the content, no formatting yet. Change-Id: I109f049bafae6a20d6b617f3be6a9c4f237e782b Reviewed-on: https://gerrit.libreoffice.org/42785 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/qa/unit/EPUBExportTest.cxx2
-rw-r--r--writerperfect/qa/unit/data/writer/epubexport/list.fodt12
2 files changed, 14 insertions, 0 deletions
diff --git a/writerperfect/qa/unit/EPUBExportTest.cxx b/writerperfect/qa/unit/EPUBExportTest.cxx
index 28349d8bf619..5b3f4b9a0c27 100644
--- a/writerperfect/qa/unit/EPUBExportTest.cxx
+++ b/writerperfect/qa/unit/EPUBExportTest.cxx
@@ -433,6 +433,8 @@ void EPUBExportTest::testList()
mpXmlDoc = parseExport("OEBPS/sections/section0001.xhtml");
// This was "C", i.e. in-list content was ignored.
assertXPathContent(mpXmlDoc, "//xhtml:p[2]/xhtml:span", "B");
+ // Test nested list content.
+ assertXPathContent(mpXmlDoc, "//xhtml:p[6]/xhtml:span", "F");
}
void EPUBExportTest::testImage()
diff --git a/writerperfect/qa/unit/data/writer/epubexport/list.fodt b/writerperfect/qa/unit/data/writer/epubexport/list.fodt
index 399ce78b2247..9c02b9d097bc 100644
--- a/writerperfect/qa/unit/data/writer/epubexport/list.fodt
+++ b/writerperfect/qa/unit/data/writer/epubexport/list.fodt
@@ -19,6 +19,18 @@
</text:list-item>
</text:list>
<text:p>C</text:p>
+ <text:p>D</text:p>
+ <text:list xml:id="list111055674" text:style-name="L1">
+ <text:list-item>
+ <text:p text:style-name="P1">E</text:p>
+ <text:list>
+ <text:list-item>
+ <text:p text:style-name="P1">F</text:p>
+ </text:list-item>
+ </text:list>
+ </text:list-item>
+ </text:list>
+ <text:p>G</text:p>
</office:text>
</office:body>
</office:document>