[Libreoffice-commits] core.git: writerperfect/qa
Miklos Vajna
vmiklos at collabora.co.uk
Tue Sep 26 11:59:14 UTC 2017
writerperfect/qa/unit/EPUBExportTest.cxx | 2 ++
writerperfect/qa/unit/data/writer/epubexport/list.fodt | 12 ++++++++++++
2 files changed, 14 insertions(+)
New commits:
commit 616fc7a79f35f4db65b58d34ff6d6e806ff9a6ef
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Tue Sep 26 10:25:17 2017 +0200
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 at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
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>
More information about the Libreoffice-commits
mailing list