summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-09-30 21:40:20 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-10-01 15:10:45 +0000
commit88488d579b1e3fbd35465eeb76a40a552d6be93b (patch)
treebb7dff4cf08ec4ad6d1e1c12db3162e1f36a9d35 /uitest
parent7d1b897287696789b66c848dfad94a43051769c2 (diff)
add resizing support to drawinglayer ui test objects
Change-Id: Ic17b32c25677855388ff49f2f7daeb1a84557fde Reviewed-on: https://gerrit.libreoffice.org/29419 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'uitest')
-rw-r--r--uitest/impress_tests/drawinglayer.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/uitest/impress_tests/drawinglayer.py b/uitest/impress_tests/drawinglayer.py
index 76574461c73f..8426f7e5f650 100644
--- a/uitest/impress_tests/drawinglayer.py
+++ b/uitest/impress_tests/drawinglayer.py
@@ -33,3 +33,22 @@ class ImpressDrawinglayerTest(UITestCase):
time.sleep(10)
self.ui_test.close_doc()
+
+ def test_resize_object(self):
+ self.ui_test.create_doc_in_start_center("impress")
+
+ xTemplateDlg = self.xUITest.getTopFocusWindow()
+ xCancelBtn = xTemplateDlg.getChild("cancel")
+ self.ui_test.close_dialog_through_button(xCancelBtn)
+
+ xImpressDoc = self.xUITest.getTopFocusWindow()
+
+ xEditWin = xImpressDoc.getChild("impress_win")
+
+ xDrawinglayerObject = xEditWin.getChild("Unnamed Drawinglayer object 1")
+ print(get_state_as_dict(xDrawinglayerObject))
+ xDrawinglayerObject.executeAction("RESIZE", mkPropertyValues({"X": "500", "Y":"4000", "FRAC_X": "0.5", "FRAC_Y": "0.5"}))
+
+ time.sleep(5)
+
+ self.ui_test.close_doc()