summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-02-12 17:53:48 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-02-12 21:50:21 +0100
commitf8da775795052ad2eb879970c115d2e2a2fe8c81 (patch)
tree7dd84be67b3f0c6625b957f03061837894719255 /writerperfect
parent22fc8c634c5f9b09d45aff0403503f4d8226328d (diff)
EPUB export, fixed layout: fix validation error with images
The "xlink" prefix for the "xlink:href" attribute on the "image" element was not bound. Change-Id: I473a0b1612b4842cf84a264960bb28a9f19600e5 Reviewed-on: https://gerrit.libreoffice.org/49612 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.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/writerperfect/qa/unit/EPUBExportTest.cxx b/writerperfect/qa/unit/EPUBExportTest.cxx
index 47e84ebf1bbc..81d70591a0da 100644
--- a/writerperfect/qa/unit/EPUBExportTest.cxx
+++ b/writerperfect/qa/unit/EPUBExportTest.cxx
@@ -874,6 +874,11 @@ void EPUBExportTest::testSVG()
// one, causing a validation error.
OString aActual(static_cast<const char *>(aMemoryStream.GetBuffer()), aExpected.getLength());
CPPUNIT_ASSERT_EQUAL(aExpected, aActual);
+
+ // This failed, we used the xlink attribute namespace, but we did not
+ // define its URL.
+ mpXmlDoc = parseExport("OEBPS/images/image0001.svg");
+ assertXPathNSDef(mpXmlDoc, "/svg:svg", "xlink", "http://www.w3.org/1999/xlink");
}
CPPUNIT_TEST_SUITE_REGISTRATION(EPUBExportTest);