sw/qa/uitest/writer_tests6/tdf157569.py |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 9f428717f97d2d129a4e3e9e9428245b6621c3f7
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Mon Mar 11 15:49:52 2024 +0600
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Mon Mar 11 12:58:11 2024 +0100

    Fix a UITest on Windows
    
    No idea why the difference. No idea even if it's specific to OS, or
    maybe on other factors as well...
    
    Change-Id: Ib1816e7fe3b7350504d3de1a78570b3f789a20db
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164652
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sw/qa/uitest/writer_tests6/tdf157569.py 
b/sw/qa/uitest/writer_tests6/tdf157569.py
index 1a9e3344ac8c..493760ed2fc7 100644
--- a/sw/qa/uitest/writer_tests6/tdf157569.py
+++ b/sw/qa/uitest/writer_tests6/tdf157569.py
@@ -9,6 +9,7 @@
 from uitest.framework import UITestCase
 from uitest.uihelper.common import get_url_for_data_file
 from libreoffice.uno.propertyvalue import mkPropertyValues
+import platform
 
 class tdf157569(UITestCase):
 
@@ -22,7 +23,10 @@ class tdf157569(UITestCase):
             # Without the fix in place, this test would have failed with
             # AssertionError: 1663 != 944
             self.assertEqual(1663, nHeight)
-            self.assertEqual(2111, nWidth)
+            if platform.system() == "Windows":
+                self.assertEqual(2145, nWidth) # no idea why
+            else:
+                self.assertEqual(2111, nWidth)
 
             xDoc = self.xUITest.getTopFocusWindow()
             xEditWin = xDoc.getChild("writer_edit")

Reply via email to