vcl/qa/cppunit/text.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 590408329ee47496c813709a1bcc8cd35f6ebbb1 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Sep 1 11:30:25 2023 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Sep 1 12:59:43 2023 +0200 adjust VclTextTest::testSimpleText on my machine, after a recent update, the text is scaled slightly differently (Ubuntu 23.04) Change-Id: I5ac5e0c76a4cc4c0468a9f0e9186f95004d4d24f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156398 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/vcl/qa/cppunit/text.cxx b/vcl/qa/cppunit/text.cxx index 4d55b1bd91d5..a42b308f6c68 100644 --- a/vcl/qa/cppunit/text.cxx +++ b/vcl/qa/cppunit/text.cxx @@ -181,7 +181,7 @@ CPPUNIT_TEST_FIXTURE(VclTextTest, testSimpleText) tools::Long height72 = getCharacterLeftSideHeight(device, Point(0, 30)); CPPUNIT_ASSERT_DOUBLES_EQUAL(height36 * 2, height72, 4); tools::Long width72 = getCharacterBaseWidth(device, Point(20, 99)); - CPPUNIT_ASSERT_DOUBLES_EQUAL(width36 * 2, width72, 4); + CPPUNIT_ASSERT_DOUBLES_EQUAL(width36 * 2, width72, 5); font.SetOrientation(2700_deg10); device->Erase(); @@ -207,7 +207,7 @@ CPPUNIT_TEST_FIXTURE(VclTextTest, testSimpleText) tools::Long height36pct200 = getCharacterLeftSideHeight(device, Point(0, 30)); CPPUNIT_ASSERT_DOUBLES_EQUAL(height36, height36pct200, 2); tools::Long width36pct200 = getCharacterBaseWidth(device, Point(20, 99)); - CPPUNIT_ASSERT_DOUBLES_EQUAL(width36 * 2, width36pct200, 4); + CPPUNIT_ASSERT_DOUBLES_EQUAL(width36 * 2, width36pct200, 5); // Test width scaled to 50%. font = vcl::Font("DejaVu Sans", "Book", Size(18, 36)); @@ -218,7 +218,7 @@ CPPUNIT_TEST_FIXTURE(VclTextTest, testSimpleText) device->SetFont(font); device->DrawText(Point(10, 10), text); exportDevice("simple-text-36-50pct.png", device); - tools::Long height36pct50 = getCharacterLeftSideHeight(device, Point(0, 30)); + tools::Long height36pct50 = getCharacterLeftSideHeight(device, Point(0, 40)); CPPUNIT_ASSERT_DOUBLES_EQUAL(height36, height36pct50, 2); tools::Long width36pct50 = getCharacterBaseWidth(device, Point(15, 99)); CPPUNIT_ASSERT_DOUBLES_EQUAL(width36 / 2, width36pct50, 2);