diff options
author | Rene Engelhard <rene@debian.org> | 2021-09-04 19:58:13 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-12-23 15:49:22 +0100 |
commit | 744f227e78fafb423d40f3014dde331308ea0cd0 (patch) | |
tree | 55ea336632b14e39b12fe5b922617692bf8d57dc /uitest | |
parent | 6dfbfe58ca6d0ebc3de6e57a44baacfef6e43c07 (diff) |
work around off-by-ones on i386 in uicheck uitests...
<@x1sc0> _rene__, I guess we could use assertAlmostEqual with delta=1 there,
but maybe once we add it, the next assert also fails for you?
Change-Id: Ic64641ccdf9ca721997b4a842b646cf4b9e30f16
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121641
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: René Engelhard <rene@debian.org>
Tested-by: René Engelhard <rene@debian.org>
Tested-by: Jenkins
(cherry picked from commit 46ebf8c0ad191f9d9d94c898475dd953fb48d9fd)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127368
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/impress_tests/drawinglayer.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/uitest/impress_tests/drawinglayer.py b/uitest/impress_tests/drawinglayer.py index 7b33e369d2e6..82fb81d257c7 100644 --- a/uitest/impress_tests/drawinglayer.py +++ b/uitest/impress_tests/drawinglayer.py @@ -78,7 +78,7 @@ class ImpressDrawinglayerTest(UITestCase): self.assertEqual(25199, document.DrawPages[0].getByIndex(0).Size.Width) self.assertEqual(2629, document.DrawPages[0].getByIndex(0).Size.Height) self.assertEqual(25199, document.DrawPages[0].getByIndex(1).Size.Width) - self.assertEqual(9134, document.DrawPages[0].getByIndex(1).Size.Height) + self.assertAlmostEqual(9134, document.DrawPages[0].getByIndex(1).Size.Height,delta=1) xEditWin = xImpressDoc.getChild("impress_win") @@ -88,7 +88,7 @@ class ImpressDrawinglayerTest(UITestCase): self.assertEqual(25199, document.DrawPages[0].getByIndex(0).Size.Width) self.assertEqual(2629, document.DrawPages[0].getByIndex(0).Size.Height) self.assertEqual(12600, document.DrawPages[0].getByIndex(1).Size.Width) - self.assertEqual(4568, document.DrawPages[0].getByIndex(1).Size.Height) + self.assertAlmostEqual(4568, document.DrawPages[0].getByIndex(1).Size.Height,delta=1) self.assertIsNone(document.CurrentSelection) @@ -127,7 +127,7 @@ class ImpressDrawinglayerTest(UITestCase): self.assertEqual(25199, document.DrawPages[0].getByIndex(0).Size.Width) self.assertEqual(2629, document.DrawPages[0].getByIndex(0).Size.Height) self.assertEqual(25199, document.DrawPages[0].getByIndex(1).Size.Width) - self.assertEqual(9134, document.DrawPages[0].getByIndex(1).Size.Height) + self.assertAlmostEqual(9134, document.DrawPages[0].getByIndex(1).Size.Height,delta=1) self.assertEqual(0, document.DrawPages[0].getByIndex(1).RotateAngle) xEditWin = xImpressDoc.getChild("impress_win") @@ -138,7 +138,7 @@ class ImpressDrawinglayerTest(UITestCase): self.assertEqual(25199, document.DrawPages[0].getByIndex(0).Size.Width) self.assertEqual(2629, document.DrawPages[0].getByIndex(0).Size.Height) self.assertEqual(25199, document.DrawPages[0].getByIndex(1).Size.Width) - self.assertEqual(9134, document.DrawPages[0].getByIndex(1).Size.Height) + self.assertAlmostEqual(9134, document.DrawPages[0].getByIndex(1).Size.Height,delta=1) self.assertEqual(3000, document.DrawPages[0].getByIndex(1).RotateAngle) self.assertIsNone(document.CurrentSelection) |