diff options
-rw-r--r-- | sd/qa/uitest/impress_tests/customSlideShow.py | 10 | ||||
-rw-r--r-- | sd/qa/uitest/impress_tests/customSlideShowDialog.py | 21 |
2 files changed, 9 insertions, 22 deletions
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: |