summaryrefslogtreecommitdiff
path: root/uitest
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-12-16 16:20:11 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2020-12-16 23:36:35 +0100
commitdffcf10aa17b77c64131fa949aef51eb6da2fd48 (patch)
tree1da6a9a86a517021ef1e663cacd3c48a1188b396 /uitest
parentf6ae309370debfdba352d7dd0a28835d3448bbbf (diff)
uitest: sd: remove duplicated tests and add missing assert
Change-Id: If2a100e3eef038cc1de1e28cf923e682be7618c9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107841 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest')
-rw-r--r--uitest/impress_tests/start.py34
1 files changed, 2 insertions, 32 deletions
diff --git a/uitest/impress_tests/start.py b/uitest/impress_tests/start.py
index cf3610af3ab0..6406ceb1a8f8 100644
--- a/uitest/impress_tests/start.py
+++ b/uitest/impress_tests/start.py
@@ -23,6 +23,8 @@ class SimpleImpressTest(UITestCase):
xEditWin = xImpressDoc.getChild("impress_win")
xEditWin.executeAction("SET", mkPropertyValues({"ZOOM": "200"}))
+ self.assertEqual(get_state_as_dict(xEditWin)["Zoom"], "200")
+
self.ui_test.close_doc()
def test_select_page(self):
@@ -49,36 +51,4 @@ class SimpleImpressTest(UITestCase):
self.ui_test.close_doc()
- def test_select_text(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")
-
- self.ui_test.close_doc()
-
- def test_select_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()
- print(xImpressDoc.getChildren())
-
- xEditWin = xImpressDoc.getChild("impress_win")
-
- xEditWin.executeAction("SELECT", mkPropertyValues({"OBJECT":"Unnamed Drawinglayer object 1"}))
- xEditWin.executeAction("DESELECT", tuple())
-
- self.ui_test.close_doc()
-
# vim: set shiftwidth=4 softtabstop=4 expandtab: