diff options
author | Armin Le Grand (Collabora) <Armin.Le.Grand@me.com> | 2024-07-20 15:01:37 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@me.com> | 2024-07-20 19:31:36 +0200 |
commit | 45c45e97e1b3a54689557644edd2ea6c3e6af149 (patch) | |
tree | 278c2748625083e48de3ce66f00bf3d5087d51ee /svgio/qa/cppunit/SvgImportTest.cxx | |
parent | 0eb68857daef5b0fcda8bfe501d3f0a683590a1f (diff) |
CairoSDPR: make use of RGBA PolyPolygon in more cases
Change-Id: I7cd93e5452bce96eef295c766f4cb391ddd67250
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170792
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Tested-by: Jenkins
Diffstat (limited to 'svgio/qa/cppunit/SvgImportTest.cxx')
-rw-r--r-- | svgio/qa/cppunit/SvgImportTest.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/svgio/qa/cppunit/SvgImportTest.cxx b/svgio/qa/cppunit/SvgImportTest.cxx index 0f2478860d9b..e30dc9e0e20c 100644 --- a/svgio/qa/cppunit/SvgImportTest.cxx +++ b/svgio/qa/cppunit/SvgImportTest.cxx @@ -325,12 +325,12 @@ CPPUNIT_TEST_FIXTURE(Test, testFilterFeFlood) { xmlDocUniquePtr pDocument = dumpAndParseSvg(u"/svgio/qa/cppunit/data/filterFeFlood.svg"); - assertXPath(pDocument, "/primitive2D/transform/unifiedtransparence"_ostr, "transparence"_ostr, u"50"_ustr); - assertXPath(pDocument, "/primitive2D/transform/unifiedtransparence/polypolygoncolor"_ostr, "color"_ostr, u"#008000"_ustr); - assertXPath(pDocument, "/primitive2D/transform/unifiedtransparence/polypolygoncolor/polypolygon"_ostr, "height"_ostr, u"100"_ustr); - assertXPath(pDocument, "/primitive2D/transform/unifiedtransparence/polypolygoncolor/polypolygon"_ostr, "width"_ostr, u"100"_ustr); - assertXPath(pDocument, "/primitive2D/transform/unifiedtransparence/polypolygoncolor/polypolygon"_ostr, "minx"_ostr, u"50"_ustr); - assertXPath(pDocument, "/primitive2D/transform/unifiedtransparence/polypolygoncolor/polypolygon"_ostr, "miny"_ostr, u"50"_ustr); + assertXPath(pDocument, "/primitive2D/transform/polypolygonrgba"_ostr, "transparence"_ostr, u"50"_ustr); + assertXPath(pDocument, "/primitive2D/transform/polypolygonrgba"_ostr, "color"_ostr, u"#008000"_ustr); + assertXPath(pDocument, "/primitive2D/transform/polypolygonrgba/polypolygon"_ostr, "height"_ostr, u"100"_ustr); + assertXPath(pDocument, "/primitive2D/transform/polypolygonrgba/polypolygon"_ostr, "width"_ostr, u"100"_ustr); + assertXPath(pDocument, "/primitive2D/transform/polypolygonrgba/polypolygon"_ostr, "minx"_ostr, u"50"_ustr); + assertXPath(pDocument, "/primitive2D/transform/polypolygonrgba/polypolygon"_ostr, "miny"_ostr, u"50"_ustr); } CPPUNIT_TEST_FIXTURE(Test, testFilterFeDropShadow) @@ -618,8 +618,8 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf155932) { xmlDocUniquePtr pDocument = dumpAndParseSvg(u"/svgio/qa/cppunit/data/tdf155932.svg"); - assertXPath(pDocument, "/primitive2D/transform/mask/mask/unifiedtransparence"_ostr, "transparence"_ostr, u"50"_ustr); - assertXPath(pDocument, "/primitive2D/transform/mask/mask/unifiedtransparence[1]/polypolygoncolor"_ostr, "color"_ostr, u"#0000ff"_ustr); + assertXPath(pDocument, "/primitive2D/transform/mask/mask/polypolygonrgba"_ostr, "transparence"_ostr, u"50"_ustr); + assertXPath(pDocument, "/primitive2D/transform/mask/mask/polypolygonrgba[1]"_ostr, "color"_ostr, u"#0000ff"_ustr); } CPPUNIT_TEST_FIXTURE(Test, testTdf97717) @@ -1050,8 +1050,8 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf155814) { xmlDocUniquePtr pDocument = dumpAndParseSvg(u"/svgio/qa/cppunit/data/tdf155814.svg"); - assertXPath(pDocument, "/primitive2D/transform/mask/mask/transform/unifiedtransparence"_ostr, "transparence"_ostr, u"50"_ustr); - assertXPath(pDocument, "/primitive2D/transform/mask/mask/transform/unifiedtransparence/polypolygoncolor"_ostr, "color"_ostr, u"#0000ff"_ustr); + assertXPath(pDocument, "/primitive2D/transform/mask/mask/transform/polypolygonrgba"_ostr, "transparence"_ostr, u"50"_ustr); + assertXPath(pDocument, "/primitive2D/transform/mask/mask/transform/polypolygonrgba"_ostr, "color"_ostr, u"#0000ff"_ustr); } CPPUNIT_TEST_FIXTURE(Test, testClipPathAndStyle) @@ -1136,7 +1136,7 @@ CPPUNIT_TEST_FIXTURE(Test, test123926) { xmlDocUniquePtr pDocument = dumpAndParseSvg(u"/svgio/qa/cppunit/data/tdf123926.svg"); - assertXPath(pDocument, "/primitive2D/transform/transform/transform/unifiedtransparence/polypolygoncolor"_ostr, "color"_ostr, u"#7cb5ec"_ustr); + assertXPath(pDocument, "/primitive2D/transform/transform/transform/polypolygonrgba"_ostr, "color"_ostr, u"#7cb5ec"_ustr); } CPPUNIT_TEST_FIXTURE(Test, test47446) @@ -1370,7 +1370,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf155733) // Without the fix in place, the softedge would have been applied to the second element // - Expected: 1 // - Actual : 0 - assertXPath(pDocument, "/primitive2D/transform/transform/unifiedtransparence"_ostr, "transparence"_ostr, u"50"_ustr); + assertXPath(pDocument, "/primitive2D/transform/transform/polypolygonrgba"_ostr, "transparence"_ostr, u"50"_ustr); } CPPUNIT_TEST_FIXTURE(Test, testTdf158445) |