From a564bb70ad6c19b28c553625f4781655adb80702 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 30 Jun 2021 12:09:34 +0200 Subject: uitest: combine create_doc_in_start_center methods Change-Id: I59ea0d0dbd203590e7cedec51d0481c953e5172b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118155 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- cui/qa/uitest/dialogs/chardlg.py | 6 +++--- cui/qa/uitest/dialogs/pastedlg.py | 2 +- cui/qa/uitest/dialogs/shortcuts.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'cui/qa') diff --git a/cui/qa/uitest/dialogs/chardlg.py b/cui/qa/uitest/dialogs/chardlg.py index 276f7c9a8c53..49adfe6d9980 100644 --- a/cui/qa/uitest/dialogs/chardlg.py +++ b/cui/qa/uitest/dialogs/chardlg.py @@ -14,7 +14,7 @@ class Test(UITestCase): def testSvxCharEffectsPage(self): # Start Impress. - with self.ui_test.create_doc_in_start_center_guarded("impress") as component: + with self.ui_test.create_doc_in_start_center("impress") as component: template = self.xUITest.getTopFocusWindow() self.ui_test.close_dialog_through_button(template.getChild("close")) doc = self.xUITest.getTopFocusWindow() @@ -45,7 +45,7 @@ class Test(UITestCase): def testSvxCharEffectsPageWriter(self): # Start Writer. - with self.ui_test.create_doc_in_start_center_guarded("writer") as component: + with self.ui_test.create_doc_in_start_center("writer") as component: doc = self.xUITest.getTopFocusWindow() editWin = doc.getChild("writer_edit") # Type a character and select it. @@ -73,7 +73,7 @@ class Test(UITestCase): def testSvxCharEffectsPageWriterAutomatic(self): # Start Writer. - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): doc = self.xUITest.getTopFocusWindow() editWin = doc.getChild("writer_edit") diff --git a/cui/qa/uitest/dialogs/pastedlg.py b/cui/qa/uitest/dialogs/pastedlg.py index cb37387ff081..50a39d232fdc 100644 --- a/cui/qa/uitest/dialogs/pastedlg.py +++ b/cui/qa/uitest/dialogs/pastedlg.py @@ -14,7 +14,7 @@ class Test(UITestCase): def testGetFormat(self): # Copy a string in Impress. - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): template = self.xUITest.getTopFocusWindow() self.ui_test.close_dialog_through_button(template.getChild("close")) doc = self.xUITest.getTopFocusWindow() diff --git a/cui/qa/uitest/dialogs/shortcuts.py b/cui/qa/uitest/dialogs/shortcuts.py index e1e318384a28..99d2bd1ccedc 100644 --- a/cui/qa/uitest/dialogs/shortcuts.py +++ b/cui/qa/uitest/dialogs/shortcuts.py @@ -13,7 +13,7 @@ from uitest.uihelper.common import get_state_as_dict class Test(UITestCase): def test_tab_navigation(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") -- cgit