CppunitTest_emfio_emf: fix test on Windows

gerrit_windows_wsl was configure to build with 'make build'
so this failure wasn't caught in time.
Now gerrit_windows_wsl builds with 'make build unitcheck slowcheck'
and it fails with
Test name: testExtTextOutScaleGM_COMPATIBLE::TestBody
double equality assertion failed
- Expected: 199
- Actual  : 201
- Delta   : 1
- In <>, attribute 'width' of '/primitive2D/metafile/transform/textsimpleportion[3]' incorrect value.

Change-Id: Ibce7398946ef52eea05438feacc7a1dcaa22d579
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208165
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli
2026-07-16 00:42:18 +02:00
parent 339f9b2a8e
commit dae32b5f57
-8
View File
@@ -1618,20 +1618,12 @@ CPPUNIT_TEST_FIXTURE(Test, testExtTextOutScaleGM_COMPATIBLE)
assertXPath(pDocument, aXPathPrefix + "textsimpleportion[3]", "text", u"24");
assertXPath(pDocument, aXPathPrefix + "textsimpleportion[3]", "fontcolor", u"#000000");
#ifndef _WIN32 //FIXME
assertXPath(pDocument, aXPathPrefix + "textsimpleportion[3]", "width", u"201");
#else
assertXPathDoubleValue(pDocument, aXPathPrefix + "textsimpleportion[3]", "width", 199.0, 1.0);
#endif
assertXPath(pDocument, aXPathPrefix + "textsimpleportion[3]", "height", u"317");
assertXPath(pDocument, aXPathPrefix + "textsimpleportion[4]", "text", u"25");
assertXPath(pDocument, aXPathPrefix + "textsimpleportion[4]", "fontcolor", u"#000000");
#ifndef _WIN32 //FIXME
assertXPath(pDocument, aXPathPrefix + "textsimpleportion[4]", "width", u"268");
#else
assertXPathDoubleValue(pDocument, aXPathPrefix + "textsimpleportion[4]", "width", 267.0, 1.0);
#endif
assertXPath(pDocument, aXPathPrefix + "textsimpleportion[4]", "height", u"317");
assertXPath(pDocument, aXPathPrefix + "polygonstroke", 9);