diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-09-27 12:07:02 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-09-27 14:22:25 +0200 |
commit | 3d3643491c9b3af082103bbd6bd18994d24cc568 (patch) | |
tree | 715e2a5e979c695ba9103105a3b994368e3cc6b3 /writerperfect | |
parent | c2999602e2463cb11dbce1f71f0bcb304494a2f4 (diff) |
EPUB export: improve metadata tests
This was the last uncovered piece in the ODF -> librevenge converter
part.
Change-Id: Ie9482f30c873deb3ddd601e1183b66706e913f14
Reviewed-on: https://gerrit.libreoffice.org/42848
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/qa/unit/EPUBExportTest.cxx | 2 | ||||
-rw-r--r-- | writerperfect/qa/unit/data/writer/epubexport/meta.fodt | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/writerperfect/qa/unit/EPUBExportTest.cxx b/writerperfect/qa/unit/EPUBExportTest.cxx index d79a196c7863..374d9f730c23 100644 --- a/writerperfect/qa/unit/EPUBExportTest.cxx +++ b/writerperfect/qa/unit/EPUBExportTest.cxx @@ -292,6 +292,8 @@ void EPUBExportTest::testMeta() // This was "Unknown Author", <meta:initial-creator> was not handled. assertXPathContent(mpXmlDoc, "/opf:package/opf:metadata/dc:creator", "A U Thor"); assertXPathContent(mpXmlDoc, "/opf:package/opf:metadata/dc:title", "Title"); + assertXPathContent(mpXmlDoc, "/opf:package/opf:metadata/dc:language", "hu"); + assertXPathContent(mpXmlDoc, "/opf:package/opf:metadata/opf:meta[@property='dcterms:modified']", "2017-09-27T09:51:19Z"); } void EPUBExportTest::testParaNamedstyle() diff --git a/writerperfect/qa/unit/data/writer/epubexport/meta.fodt b/writerperfect/qa/unit/data/writer/epubexport/meta.fodt index 4e46fe79fcda..8b1af3e44f5a 100644 --- a/writerperfect/qa/unit/data/writer/epubexport/meta.fodt +++ b/writerperfect/qa/unit/data/writer/epubexport/meta.fodt @@ -3,6 +3,8 @@ <office:meta> <meta:initial-creator>A U Thor</meta:initial-creator> <dc:title>Title</dc:title> + <dc:language>hu</dc:language> + <dc:date>2017-09-27T09:51:19.243117081</dc:date> </office:meta> <office:body> <office:text> |