diff options
author | Balazs Varga <balazs.varga991@gmail.com> | 2019-09-17 10:05:40 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2019-09-18 09:14:58 +0200 |
commit | e9024b469530a483a1019ccef2b8b664c1696456 (patch) | |
tree | c9cb65d93a59bc394f09ffb4d11ce1189299797a /sw/qa | |
parent | bb16f6597d3b252837d32d4d9f7c56619c0e70df (diff) |
tdf#127448 fix unit test for HiDPI displays
Change-Id: I76a1d54fb23f53b05a0fc3962a92149fe2d65742
Reviewed-on: https://gerrit.libreoffice.org/79046
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/layout/layout.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/qa/extras/layout/layout.cxx b/sw/qa/extras/layout/layout.cxx index e6958348d0d6..af3cde2db379 100644 --- a/sw/qa/extras/layout/layout.cxx +++ b/sw/qa/extras/layout/layout.cxx @@ -2352,8 +2352,10 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testHorizontal_multilevel) xmlDocPtr pXmlDoc = dumpAndParse(dumper, *xMetaFile); CPPUNIT_ASSERT(pXmlDoc); // Test the Y position of horizontal category axis label. - assertXPath(pXmlDoc, "/metafile/push[1]/push[1]/push[1]/push[3]/push[1]/textarray[7]", "y", - "7945"); + sal_Int32 nYposition + = getXPath(pXmlDoc, "/metafile/push[1]/push[1]/push[1]/push[3]/push[1]/textarray[7]", "y") + .toInt32(); + CPPUNIT_ASSERT(nYposition > 7943 && nYposition < 7947); } CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testTdf124796) |