sd/qa/uitest/impress_tests/customSlideShow.py | 10 ++++++++- sd/qa/uitest/impress_tests/customSlideShowDialog.py | 21 -------------------- 2 files changed, 9 insertions(+), 22 deletions(-)
New commits: commit 5b3c530016927d3e91e3124e124f7b428ab285ac Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Mon Jul 19 11:04:04 2021 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon Jul 19 15:53:43 2021 +0200 uitest: sd: put similar tests in the same file Besides, self.ui_test.close_doc() is already called within the create_doc_in_start_center context manager Change-Id: Ic5bb4cfa55fb3892172a073a1f40b8e916802c0e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119167 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sd/qa/uitest/impress_tests/customSlideShow.py b/sd/qa/uitest/impress_tests/customSlideShow.py index 403281bf4c62..4915dce68800 100644 --- a/sd/qa/uitest/impress_tests/customSlideShow.py +++ b/sd/qa/uitest/impress_tests/customSlideShow.py @@ -57,6 +57,14 @@ class customSlideShow(UITestCase): # delete.executeAction("CLICK",tuple()) # self.assertEqual(get_state_as_dict(customshowlist)["Children"], "0") - + def test_tdf143125(self): + with self.ui_test.create_doc_in_start_center("impress"): + MainWindow = self.xUITest.getTopFocusWindow() + TemplateDialog = self.xUITest.getTopFocusWindow() + cancel = TemplateDialog.getChild("close") + self.ui_test.close_dialog_through_button(cancel) + with self.ui_test.execute_dialog_through_command(".uno:CustomShowDialog") as CustomSlideShows: + # Without the fix in place, this test would have crashed here + pass # vim: set shiftwidth=4 softtabstop=4 expandtab: diff --git a/sd/qa/uitest/impress_tests/customSlideShowDialog.py b/sd/qa/uitest/impress_tests/customSlideShowDialog.py deleted file mode 100644 index b515a9657f85..000000000000 --- a/sd/qa/uitest/impress_tests/customSlideShowDialog.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- - -from uitest.framework import UITestCase -from libreoffice.uno.propertyvalue import mkPropertyValues -import importlib -from uitest.debug import sleep -from uitest.uihelper.common import select_pos -from uitest.uihelper.common import get_state_as_dict, type_text - -class customSlideShowDialog(UITestCase): - def test_customSlideShowDialog(self): - with self.ui_test.create_doc_in_start_center("impress"): - MainWindow = self.xUITest.getTopFocusWindow() - TemplateDialog = self.xUITest.getTopFocusWindow() - cancel = TemplateDialog.getChild("close") - self.ui_test.close_dialog_through_button(cancel) - with self.ui_test.execute_dialog_through_command(".uno:CustomShowDialog") as CustomSlideShows: - self.ui_test.close_doc() - # Without the fix in place, this test would have crashed here - -# vim: set shiftwidth=4 softtabstop=4 expandtab: _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits