[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - sw/qa

Balazs Varga (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 18 08:37:17 UTC 2019


 sw/qa/extras/layout/layout.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 66148574e29d9e5509bdb408b06bb53d80ba0641
Author:     Balazs Varga <balazs.varga991 at gmail.com>
AuthorDate: Tue Sep 17 10:05:40 2019 +0200
Commit:     László Németh <nemeth at numbertext.org>
CommitDate: Wed Sep 18 10:36:26 2019 +0200

    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 at numbertext.org>
    (cherry picked from commit e9024b469530a483a1019ccef2b8b664c1696456)
    Reviewed-on: https://gerrit.libreoffice.org/79080
    Reviewed-by: Balazs Varga <balazs.varga991 at gmail.com>

diff --git a/sw/qa/extras/layout/layout.cxx b/sw/qa/extras/layout/layout.cxx
index dc63fc66302e..dc1a407969df 100644
--- a/sw/qa/extras/layout/layout.cxx
+++ b/sw/qa/extras/layout/layout.cxx
@@ -2438,8 +2438,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)


More information about the Libreoffice-commits mailing list