summaryrefslogtreecommitdiff
path: root/svgio/qa/cppunit/SvgImportTest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svgio/qa/cppunit/SvgImportTest.cxx')
-rw-r--r--svgio/qa/cppunit/SvgImportTest.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/svgio/qa/cppunit/SvgImportTest.cxx b/svgio/qa/cppunit/SvgImportTest.cxx
index 0f2478860d9b..9d03b0bae39d 100644
--- a/svgio/qa/cppunit/SvgImportTest.cxx
+++ b/svgio/qa/cppunit/SvgImportTest.cxx
@@ -686,6 +686,17 @@ CPPUNIT_TEST_FIXTURE(Test, testContextStroke)
assertXPath(pDocument, "/primitive2D/transform/transform[4]/polypolygonstroke/line"_ostr, "color"_ostr, u"#ff0000"_ustr);
}
+CPPUNIT_TEST_FIXTURE(Test, testContextStrokeGradient)
+{
+ xmlDocUniquePtr pDocument = dumpAndParseSvg(u"/svgio/qa/cppunit/data/contextStrokeGradient.svg");
+
+ assertXPath(pDocument, "/primitive2D/transform/svglineargradient"_ostr);
+ assertXPath(pDocument, "/primitive2D/transform/transform[1]/svglineargradient"_ostr);
+ assertXPath(pDocument, "/primitive2D/transform/transform[2]/svglineargradient"_ostr);
+ assertXPath(pDocument, "/primitive2D/transform/transform[3]/svglineargradient"_ostr);
+ assertXPath(pDocument, "/primitive2D/transform/transform[4]/svglineargradient"_ostr);
+}
+
CPPUNIT_TEST_FIXTURE(Test, testMarkerInPresentation)
{
xmlDocUniquePtr pDocument = dumpAndParseSvg(u"/svgio/qa/cppunit/data/markerInPresentation.svg");