svgio/qa/cppunit/SvgImportTest.cxx | 4 ++++ svgio/qa/cppunit/data/tdf156034.svg | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-)
New commits: commit ab094c4b7e5c0914dcc3d378c08129c5be2108ef Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Sun Jun 25 20:02:59 2023 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Sun Jun 25 23:06:05 2023 +0200 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 <xiscofa...@libreoffice.org> 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>