summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2021-06-30 12:09:34 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2021-06-30 15:26:57 +0200
commita564bb70ad6c19b28c553625f4781655adb80702 (patch)
tree9a4be5c7a79d29471fa1076ba6563440587b0fec /cui
parent95b06d3aa514ce83f82fd538d1731fc6363e4b8a (diff)
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'cui')
-rw-r--r--cui/qa/uitest/dialogs/chardlg.py6
-rw-r--r--cui/qa/uitest/dialogs/pastedlg.py2
-rw-r--r--cui/qa/uitest/dialogs/shortcuts.py2
3 files changed, 5 insertions, 5 deletions
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")