[Libreoffice-commits] core.git: uitest/impress_tests
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Wed Dec 16 22:37:21 UTC 2020
uitest/impress_tests/start.py | 34 ++--------------------------------
1 file changed, 2 insertions(+), 32 deletions(-)
New commits:
commit dffcf10aa17b77c64131fa949aef51eb6da2fd48
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Dec 16 16:20:11 2020 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Dec 16 23:36:35 2020 +0100
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 at libreoffice.org>
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:
More information about the Libreoffice-commits
mailing list