diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-05-26 14:31:27 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-05-26 20:04:27 +0200 |
commit | c3dc12c4c66bfec6c9d29603f9707d55fbb11d94 (patch) | |
tree | e1c0bdaa14ad8f2640a7bfc220d2f1cf0bb1758e | |
parent | 7f9668926d03de947a73c0b3a5e2f6490701fcad (diff) |
tdf137314 Add margin to CppunitTest assertions
The test had multiple failures on Windows with:
oox/qa/unit/vml.cxx(79) : error : Assertion
Test name: tdf137314_vml_rotation_unit_fd::TestBody
equality assertion failed
- Expected: 1490
- Actual : 1491
So add a 1px margin to all value checks.
Change-Id: I70298db253299a57cc37eed482c0816d902fbeab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116192
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 60b98189281524c85b559ee3b6adc1381b793b9d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116154
-rw-r--r-- | oox/qa/unit/vml.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/qa/unit/vml.cxx b/oox/qa/unit/vml.cxx index 94e73459d995..d75372da39ae 100644 --- a/oox/qa/unit/vml.cxx +++ b/oox/qa/unit/vml.cxx @@ -73,9 +73,9 @@ CPPUNIT_TEST_FIXTURE(OoxVmlTest, tdf137314_vml_rotation_unit_fd) // Without fix in place, the vector was -1441|1490. // [1] and [2] are Bezier-curve control points. sal_Int32 nDiffX = aPolygon[3].X - aPolygon[0].X; - CPPUNIT_ASSERT_EQUAL(sal_Int32(1490), nDiffX); + CPPUNIT_ASSERT_DOUBLES_EQUAL(sal_Int32(1490), nDiffX, 1); sal_Int32 nDiffY = aPolygon[3].Y - aPolygon[0].Y; - CPPUNIT_ASSERT_EQUAL(sal_Int32(1441), nDiffY); + CPPUNIT_ASSERT_DOUBLES_EQUAL(sal_Int32(1441), nDiffY, 1); } CPPUNIT_TEST_FIXTURE(OoxVmlTest, testSpt202ShapeType) |