summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-24 08:48:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-24 10:52:18 +0200
commit51d2e734099e5c5c56393ef9f08007a7df441794 (patch)
tree89e18ceeab04326b4299215ddcb422fa324051cb /sd
parentf3294eb1789e9603b5129f0f2d61116fd4853b52 (diff)
try and make test_Tdf148620 more reliable
Change-Id: I11ec949cb82ebaaa225afbbc154f574fc56c0d62 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138753 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/uitest/impress_tests2/tdf148620.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/sd/qa/uitest/impress_tests2/tdf148620.py b/sd/qa/uitest/impress_tests2/tdf148620.py
index a703d722d8dd..f52284fbaf2c 100644
--- a/sd/qa/uitest/impress_tests2/tdf148620.py
+++ b/sd/qa/uitest/impress_tests2/tdf148620.py
@@ -40,38 +40,50 @@ class Tdf148620(UITestCase):
self.assertEqual("One\nTwo\nThree\nFour\nFive\nsix", document.DrawPages[0].getByIndex(1).String)
+ xToolkit = self.xContext.ServiceManager.createInstance('com.sun.star.awt.Toolkit')
+
xArgs = mkPropertyValues({"KeyModifier": 0})
self.xUITest.executeCommandWithParameters(".uno:OutlineUp", xArgs)
+ xToolkit.processEventsToIdle()
self.assertEqual("One\nTwo\nThree\nFour\nsix\nFive", document.DrawPages[0].getByIndex(1).String)
self.xUITest.executeCommandWithParameters(".uno:OutlineUp", xArgs)
+ xToolkit.processEventsToIdle()
self.assertEqual("One\nTwo\nThree\nsix\nFour\nFive", document.DrawPages[0].getByIndex(1).String)
self.xUITest.executeCommandWithParameters(".uno:OutlineUp", xArgs)
+ xToolkit.processEventsToIdle()
self.assertEqual("One\nTwo\nsix\nThree\nFour\nFive", document.DrawPages[0].getByIndex(1).String)
self.xUITest.executeCommandWithParameters(".uno:OutlineUp", xArgs)
+ xToolkit.processEventsToIdle()
self.assertEqual("One\nsix\nTwo\nThree\nFour\nFive", document.DrawPages[0].getByIndex(1).String)
self.xUITest.executeCommandWithParameters(".uno:OutlineUp", xArgs)
+ xToolkit.processEventsToIdle()
self.assertEqual("six\nOne\nTwo\nThree\nFour\nFive", document.DrawPages[0].getByIndex(1).String)
self.xUITest.executeCommandWithParameters(".uno:OutlineDown", xArgs)
+ xToolkit.processEventsToIdle()
# Without the fix in place, this test would have failed with
# AssertionError: 'One\nsix\nTwo\nThree\nFour\nFive' != 'One\nTwo\nsix\nThree\nFour\nFive'
self.assertEqual("One\nsix\nTwo\nThree\nFour\nFive", document.DrawPages[0].getByIndex(1).String)
self.xUITest.executeCommandWithParameters(".uno:OutlineDown", xArgs)
+ xToolkit.processEventsToIdle()
self.assertEqual("One\nTwo\nsix\nThree\nFour\nFive", document.DrawPages[0].getByIndex(1).String)
self.xUITest.executeCommandWithParameters(".uno:OutlineDown", xArgs)
+ xToolkit.processEventsToIdle()
self.assertEqual("One\nTwo\nThree\nsix\nFour\nFive", document.DrawPages[0].getByIndex(1).String)
self.xUITest.executeCommandWithParameters(".uno:OutlineDown", xArgs)
+ xToolkit.processEventsToIdle()
self.assertEqual("One\nTwo\nThree\nFour\nsix\nFive", document.DrawPages[0].getByIndex(1).String)
self.xUITest.executeCommandWithParameters(".uno:OutlineDown", xArgs)
+ xToolkit.processEventsToIdle()
self.assertEqual("One\nTwo\nThree\nFour\nFive\nsix", document.DrawPages[0].getByIndex(1).String)
# vim: set shiftwidth=4 softtabstop=4 expandtab: