[Libreoffice-commits] core.git: sd/qa
Marco Cecchetti (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jan 26 16:58:06 UTC 2021
sd/qa/unit/SVGExportTests.cxx | 12 ++++++++++++
sd/qa/unit/data/odp/slide-custom-background.odp |binary
2 files changed, 12 insertions(+)
New commits:
commit dcb5b4a773213e74785f609ef18d33a2b51dcac0
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
AuthorDate: Tue Jan 12 17:55:08 2021 +0100
Commit: Marco Cecchetti <marco.cecchetti at collabora.com>
CommitDate: Tue Jan 26 17:57:17 2021 +0100
filter: svg: slide custom background unit test
Change-Id: I29990218bfa6095c368ed36ebc9cca909d2136fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109189
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Marco Cecchetti <marco.cecchetti at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109868
Tested-by: Jenkins
diff --git a/sd/qa/unit/SVGExportTests.cxx b/sd/qa/unit/SVGExportTests.cxx
index d8b828c9bd76..bc6dac0d5715 100644
--- a/sd/qa/unit/SVGExportTests.cxx
+++ b/sd/qa/unit/SVGExportTests.cxx
@@ -25,6 +25,7 @@
#define SVG_G *[name()='g']
#define SVG_TEXT *[name()='text']
#define SVG_TSPAN *[name()='tspan']
+#define SVG_DEFS *[name()='defs']
using namespace css;
@@ -126,9 +127,20 @@ public:
1);
}
+ void testSVGExporSlidetCustomBackground()
+ {
+ executeExport("slide-custom-background.odp");
+
+ xmlDocUniquePtr svgDoc = parseXml(maTempFile);
+ CPPUNIT_ASSERT(svgDoc);
+
+ assertXPath(svgDoc, SAL_STRINGIFY( /SVG_SVG/SVG_G[2]/SVG_G/SVG_G/SVG_G/SVG_G/SVG_DEFS ), "class", "SlideBackground");
+ }
+
CPPUNIT_TEST_SUITE(SdSVGFilterTest);
CPPUNIT_TEST(testSVGExportTextDecorations);
CPPUNIT_TEST(testSVGExportJavascriptURL);
+ CPPUNIT_TEST(testSVGExporSlidetCustomBackground);
CPPUNIT_TEST_SUITE_END();
};
diff --git a/sd/qa/unit/data/odp/slide-custom-background.odp b/sd/qa/unit/data/odp/slide-custom-background.odp
new file mode 100644
index 000000000000..df07c6f34579
Binary files /dev/null and b/sd/qa/unit/data/odp/slide-custom-background.odp differ
More information about the Libreoffice-commits
mailing list