fix test for non-default DPI

Change-Id: Id3b39535ae18a5b38e57d9cacb7e3662a9c3468c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147498
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2023-02-23 09:04:28 +02:00 committed by Noel Grandin
parent 5de206e549
commit 0e123c297a

View file

@ -2138,7 +2138,8 @@ CPPUNIT_TEST_FIXTURE(ScFiltersTest2, testTdf152053)
// Without the fix in place, this test would have failed with
// - Expected: 1162
// - Actual : 715
CPPUNIT_ASSERT_EQUAL(1162, nWidth);
// tolerance is for windows machines with non-default DPI
CPPUNIT_ASSERT_DOUBLES_EQUAL(1162, nWidth, 10);
}
CPPUNIT_TEST_FIXTURE(ScFiltersTest2, testPreviewMissingObjLink)