tdf#156579: svgio: Add unittest
Change-Id: I77ab0c72209fa02c6e463351e8cda09213d47ac3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165399 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
@@ -434,6 +434,14 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf145896)
|
||||
assertXPath(pDocument, "/primitive2D/transform/polypolygoncolor[3]"_ostr, "color"_ostr, "#0000ff");
|
||||
}
|
||||
|
||||
CPPUNIT_TEST_FIXTURE(Test, testTdf156579)
|
||||
{
|
||||
xmlDocUniquePtr pDocument = dumpAndParseSvg(u"/svgio/qa/cppunit/data/tdf156579.svg");
|
||||
|
||||
// Without the fix in place, nothing would be displayed
|
||||
assertXPath(pDocument, "/primitive2D/transform/mask/transform/polypolygoncolor[1]"_ostr, "color"_ostr, "#0000ff");
|
||||
}
|
||||
|
||||
CPPUNIT_TEST_FIXTURE(Test, testTdf156168)
|
||||
{
|
||||
xmlDocUniquePtr pDocument = dumpAndParseSvg(u"/svgio/qa/cppunit/data/tdf156168.svg");
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width="310.024" height="72.283" viewBox="0 0 310.024 72.283">
|
||||
<switch>
|
||||
<foreignObject requiredExtensions="" x="0" y="0" width="0" height="0">
|
||||
</foreignObject>
|
||||
<rect x="0" y="0" height="100" width="100" fill="blue"></rect>
|
||||
</switch>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 370 B |
Reference in New Issue
Block a user