diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-11-04 17:07:13 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-11-04 18:27:35 +0100 |
commit | 9158d2d2f19cf7bccba12d2ad4cb340e882b51cc (patch) | |
tree | a5ee44e666d307941742ffaa35b4197ce4241431 /uitest | |
parent | 4ab908e94da9305d6800c82b5d753c26193aa96b (diff) |
blind fix for UITest_impress_demo failed
Change-Id: I66dcc0d260585e5f44410a16bc25a32d8d373ae0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124715
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/impress_tests/drawinglayer.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/uitest/impress_tests/drawinglayer.py b/uitest/impress_tests/drawinglayer.py index 9f193d3cfb41..1e582ef2e49c 100644 --- a/uitest/impress_tests/drawinglayer.py +++ b/uitest/impress_tests/drawinglayer.py @@ -33,6 +33,9 @@ class ImpressDrawinglayerTest(UITestCase): xDrawinglayerObject = xEditWin.getChild("Unnamed Drawinglayer object 1") xDrawinglayerObject.executeAction("MOVE", mkPropertyValues({"X": "1000", "Y":"1000"})) + xToolkit = self.xContext.ServiceManager.createInstance('com.sun.star.awt.Toolkit') + xToolkit.processEventsToIdle() + self.assertEqual(1400, document.DrawPages[0].getByIndex(0).Position.X) self.assertEqual(628, document.DrawPages[0].getByIndex(0).Position.Y) self.assertEqual(2400, document.DrawPages[0].getByIndex(1).Position.X) @@ -76,6 +79,9 @@ class ImpressDrawinglayerTest(UITestCase): xDrawinglayerObject = xEditWin.getChild("Unnamed Drawinglayer object 1") xDrawinglayerObject.executeAction("RESIZE", mkPropertyValues({"X": "500", "Y":"4000", "FRAC_X": "0.5", "FRAC_Y": "0.5"})) + xToolkit = self.xContext.ServiceManager.createInstance('com.sun.star.awt.Toolkit') + xToolkit.processEventsToIdle() + 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) @@ -118,6 +124,9 @@ class ImpressDrawinglayerTest(UITestCase): xDrawinglayerObject = xEditWin.getChild("Unnamed Drawinglayer object 1") xDrawinglayerObject.executeAction("ROTATE", mkPropertyValues({"X": "500", "Y":"4000", "ANGLE": "3000"})) + xToolkit = self.xContext.ServiceManager.createInstance('com.sun.star.awt.Toolkit') + xToolkit.processEventsToIdle() + 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) |