Make CppunitTest_svgio CPPUNIT_TEST_NAME=testCssClassRedefinition more robust
The commit:
commit 9e83d35c4a
Date: Thu Jun 23 21:52:52 2022 +0200
Make CppunitTest_svgio CPPUNIT_TEST_NAME=Test::testCssClassRedefinition robust
Changed the font from generic Sans to Open Symbol to avoid failure when a
different font is used, but it didn’t change the text string to a one
supported by Open Symbol, so font fallback would still make the test
fail. Change the text string to “012” which is supported by Open Symbol.
Change-Id: I6e6ba22614ef1bafe5aece05c42d57d71923380c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154492
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
This commit is contained in:
@@ -1512,7 +1512,7 @@ CPPUNIT_TEST_FIXTURE(Test, testCssClassRedefinition)
|
||||
drawinglayer::Primitive2dXmlDump dumper;
|
||||
xmlDocUniquePtr pDocument = dumper.dumpAndParse(Primitive2DContainer(aSequence));
|
||||
CPPUNIT_ASSERT (pDocument);
|
||||
assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[1]", "text", "test");
|
||||
assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[1]", "text", "012");
|
||||
assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[1]", "fontcolor", "#ff0000");
|
||||
assertXPath(
|
||||
pDocument, "/primitive2D/transform/textsimpleportion[1]", "familyname", "Open Symbol");
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
<!-- finally c1 should be equal to fill:#ff0000 and font-family:Sans -->
|
||||
</style>
|
||||
<text x="20" y="20" >
|
||||
<tspan class="c1">test</tspan>
|
||||
<tspan class="c1">012</tspan>
|
||||
</text>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 497 B After Width: | Height: | Size: 496 B |
Reference in New Issue
Block a user