summaryrefslogtreecommitdiff
path: root/sw/qa/uitest/writer_tests6
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-03-11 15:49:52 +0600
committerMike Kaganski <mike.kaganski@collabora.com>2024-03-11 12:58:11 +0100
commit9f428717f97d2d129a4e3e9e9428245b6621c3f7 (patch)
treeafb7b4380638a8e03ff1c785d56a3e4f194b4eec /sw/qa/uitest/writer_tests6
parent4c382515069d1ccf9ffc3f647ab3acc26c2aba6f (diff)
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 <xiscofauli@libreoffice.org> Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/qa/uitest/writer_tests6')
-rw-r--r--sw/qa/uitest/writer_tests6/tdf157569.py6
1 files changed, 5 insertions, 1 deletions
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")