diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-05-31 00:44:26 +0200 |
---|---|---|
committer | Xisco Faulí <anistenis@gmail.com> | 2016-05-31 09:44:41 +0000 |
commit | 292e25e66d67b528dfc81665aac2c58897871667 (patch) | |
tree | 5597339ed131bce31115b6559c7a3cc1213d20c5 /svgio | |
parent | ab0dc9524a36a394e97df9499bf1f5e4b94cfdca (diff) |
SVGIO: Modify a unittest to check "inherit" in font-family
Change-Id: I4a339b419a5abd1ad02f7aef2abd016a1c2260b8
Reviewed-on: https://gerrit.libreoffice.org/25695
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Xisco Faulí <anistenis@gmail.com>
Diffstat (limited to 'svgio')
-rw-r--r-- | svgio/qa/cppunit/SvgImportTest.cxx | 7 | ||||
-rw-r--r-- | svgio/qa/cppunit/data/FontsizeRelative.svg | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/svgio/qa/cppunit/SvgImportTest.cxx b/svgio/qa/cppunit/SvgImportTest.cxx index 3fd6c4147369..645ad1b0cbef 100644 --- a/svgio/qa/cppunit/SvgImportTest.cxx +++ b/svgio/qa/cppunit/SvgImportTest.cxx @@ -296,7 +296,12 @@ void Test::testFontsizeRelative() assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[1]", "fontcolor", "#000000"); assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[1]", "text", "Sample"); assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[1]", "height", "50"); - assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[1]", "familyname", "Times New Roman"); + assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[1]", "familyname", "serif"); + + assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[2]", "fontcolor", "#000000"); + assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[2]", "text", "Sample"); + assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[2]", "height", "50"); + assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[2]", "familyname", "serif"); } void Test::testTdf45771() diff --git a/svgio/qa/cppunit/data/FontsizeRelative.svg b/svgio/qa/cppunit/data/FontsizeRelative.svg index 339e663a5fd1..b957b90a3a11 100644 --- a/svgio/qa/cppunit/data/FontsizeRelative.svg +++ b/svgio/qa/cppunit/data/FontsizeRelative.svg @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <svg height="600" width="400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> -<g font-size="5px"> - <text x="150" y="150" font-size="10em">Sample</text> +<g font-size="5px" font-family="serif"> + <text x="10" y="150" font-size="10em" font-family="inherit">Sample</text> + <text x="200" y="150" font-size="10em" font-family="serif">Sample</text> </g> </svg> |