summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2023-06-25 20:02:59 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2023-06-25 23:06:05 +0200
commitab094c4b7e5c0914dcc3d378c08129c5be2108ef (patch)
tree3ebea495755e96d8feed4b516a014a292fc59f10 /svgio
parent99b1459dbbe5faa47b5fc9b4ed767932d46a02cb (diff)
tdf#156034: improve test a bit
Change-Id: I164103c92cfb53c4f1ce48dd1ca39dbd9a1efb1d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153566 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/qa/cppunit/SvgImportTest.cxx4
-rw-r--r--svgio/qa/cppunit/data/tdf156034.svg16
2 files changed, 19 insertions, 1 deletions
diff --git a/svgio/qa/cppunit/SvgImportTest.cxx b/svgio/qa/cppunit/SvgImportTest.cxx
index 651e1341521f..abef91413077 100644
--- a/svgio/qa/cppunit/SvgImportTest.cxx
+++ b/svgio/qa/cppunit/SvgImportTest.cxx
@@ -338,6 +338,10 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf156034)
assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[2]", "color", "#008000");
assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[3]", "color", "#008000");
assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[4]", "color", "#008000");
+ assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[5]", "color", "#008000");
+ assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[6]", "color", "#008000");
+ assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[7]", "color", "#008000");
+ assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[8]", "color", "#008000");
}
CPPUNIT_TEST_FIXTURE(Test, testTdf156018)
diff --git a/svgio/qa/cppunit/data/tdf156034.svg b/svgio/qa/cppunit/data/tdf156034.svg
index ed14c5fe4aaf..1cd3a82b78e2 100644
--- a/svgio/qa/cppunit/data/tdf156034.svg
+++ b/svgio/qa/cppunit/data/tdf156034.svg
@@ -1,8 +1,10 @@
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-0 0 300 300">
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-0 0 800 800">
<style>
.g1 rect {fill:green;}
#g3 rect {fill:green;}
+ .g4 #r1 {fill:green;}
+ #g3 .r5 {fill:green;}
</style>
<g class="g4 g1">
@@ -17,4 +19,16 @@
</g>
<rect x="180" y="0" height="50" width="50" fill="blue"></rect>
</g>
+ <g class="g4 g1">
+ <g>
+ <rect id="r1" x="240" y="0" height="50" width="50" fill="blue"></rect>
+ </g>
+ <rect id="r1" x="300" y="0" height="50" width="50" fill="blue"></rect>
+ </g>
+ <g id="g3">
+ <g id="g4">
+ <rect class="r5" x="360" y="0" height="50" width="50" fill="blue"></rect>
+ </g>
+ <rect class="r5" x="420" y="0" height="50" width="50" fill="blue"></rect>
+ </g>
</svg>