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 --- sw/qa/uitest/chapterNumbering/chapterNumbering.py | 2 +- sw/qa/uitest/chapterNumbering/tdf140528.py | 2 +- sw/qa/uitest/chart/tdf138556.py | 2 +- sw/qa/uitest/classification/classification.py | 6 +++--- sw/qa/uitest/findBar/findbar.py | 2 +- sw/qa/uitest/findBar/tdf136941.py | 2 +- sw/qa/uitest/findBar/tdf138232.py | 2 +- sw/qa/uitest/findBar/tdf88608.py | 2 +- sw/qa/uitest/findReplace/findReplace.py | 4 ++-- sw/qa/uitest/findReplace/tdf106099.py | 2 +- sw/qa/uitest/findReplace/tdf119462.py | 2 +- sw/qa/uitest/librelogo/run.py | 2 +- sw/qa/uitest/macro_tests/tdf124413.py | 2 +- sw/qa/uitest/macro_tests/tdf64690.py | 2 +- sw/qa/uitest/navigator/tdf137274.py | 2 +- sw/qa/uitest/navigator/tdf140257.py | 2 +- sw/qa/uitest/options/optionsDialog.py | 4 ++-- sw/qa/uitest/options/tdf131581.py | 2 +- sw/qa/uitest/options/tdf78133.py | 2 +- sw/qa/uitest/sidebar/stylesSidebar.py | 2 +- sw/qa/uitest/sidebar/tdf133189.py | 2 +- sw/qa/uitest/sidebar/tdf135590.py | 2 +- sw/qa/uitest/styleInspector/tdf137105.py | 2 +- sw/qa/uitest/styleInspector/tdf137513.py | 2 +- sw/qa/uitest/table/insertTableDialog.py | 4 ++-- sw/qa/uitest/table/sheetToTable.py | 2 +- sw/qa/uitest/table/tdf115026.py | 2 +- sw/qa/uitest/table/tdf116737.py | 2 +- sw/qa/uitest/table/tdf128593.py | 2 +- sw/qa/uitest/table/textToTable.py | 2 +- sw/qa/uitest/ui/fmtui/fmtui.py | 2 +- sw/qa/uitest/ui/index/index.py | 2 +- sw/qa/uitest/writer_tests/comments.py | 4 ++-- sw/qa/uitest/writer_tests/insertCaption.py | 2 +- sw/qa/uitest/writer_tests/tdf134734.py | 2 +- .../writer_tests/tdf137459_editeng_ctrl-DEL.py | 2 +- sw/qa/uitest/writer_tests/tdf53460.py | 2 +- sw/qa/uitest/writer_tests/tdf78068.py | 2 +- sw/qa/uitest/writer_tests/tdf93068.py | 2 +- sw/qa/uitest/writer_tests/trackedChanges.py | 12 ++++++------ sw/qa/uitest/writer_tests/watermark.py | 2 +- sw/qa/uitest/writer_tests/wordCount.py | 8 ++++---- sw/qa/uitest/writer_tests2/asianPhoneticGuide.py | 2 +- sw/qa/uitest/writer_tests2/bookmark.py | 6 +++--- sw/qa/uitest/writer_tests2/deleteAllComments.py | 4 ++-- sw/qa/uitest/writer_tests2/documentProperties.py | 2 +- sw/qa/uitest/writer_tests2/exchangeDatabase.py | 4 ++-- sw/qa/uitest/writer_tests2/fontworks.py | 2 +- sw/qa/uitest/writer_tests2/formatBulletsNumbering.py | 12 ++++++------ sw/qa/uitest/writer_tests2/formatCharacter.py | 12 ++++++------ sw/qa/uitest/writer_tests2/formatParagraph.py | 20 ++++++++++---------- sw/qa/uitest/writer_tests2/horizontalLine.py | 2 +- sw/qa/uitest/writer_tests2/insertFootnote.py | 2 +- sw/qa/uitest/writer_tests2/pasteSpecial.py | 2 +- sw/qa/uitest/writer_tests2/tdf116474.py | 2 +- sw/qa/uitest/writer_tests3/autoredactDialog.py | 4 ++-- sw/qa/uitest/writer_tests3/customizeDialog.py | 10 +++++----- sw/qa/uitest/writer_tests3/hyperlinkdialog.py | 6 +++--- sw/qa/uitest/writer_tests3/insertEndnote.py | 2 +- sw/qa/uitest/writer_tests3/insertEnvelope.py | 2 +- sw/qa/uitest/writer_tests3/insertFootEndnote.py | 2 +- sw/qa/uitest/writer_tests3/insertPageFooter.py | 4 ++-- sw/qa/uitest/writer_tests3/insertQrCodeGen.py | 4 ++-- sw/qa/uitest/writer_tests3/insertSignatureLine.py | 4 ++-- sw/qa/uitest/writer_tests3/lineNumbering.py | 4 ++-- sw/qa/uitest/writer_tests3/pageDialog.py | 10 +++++----- sw/qa/uitest/writer_tests3/sort.py | 4 ++-- sw/qa/uitest/writer_tests3/specialCharacter.py | 2 +- sw/qa/uitest/writer_tests3/tdf79236.py | 2 +- sw/qa/uitest/writer_tests4/insertBreakDialog.py | 8 ++++---- sw/qa/uitest/writer_tests4/insertPageHeader.py | 4 ++-- sw/qa/uitest/writer_tests4/spellDialog.py | 2 +- sw/qa/uitest/writer_tests4/start.py | 4 ++-- sw/qa/uitest/writer_tests4/tdf113252.py | 2 +- sw/qa/uitest/writer_tests4/tdf115572.py | 4 ++-- sw/qa/uitest/writer_tests4/tdf115573.py | 8 ++++---- sw/qa/uitest/writer_tests4/tdf51352.py | 2 +- sw/qa/uitest/writer_tests4/tdf92611.py | 2 +- sw/qa/uitest/writer_tests5/about_test.py | 2 +- sw/qa/uitest/writer_tests5/autocorrectOptions.py | 2 +- sw/qa/uitest/writer_tests5/columns.py | 2 +- sw/qa/uitest/writer_tests5/tdf107494.py | 4 ++-- sw/qa/uitest/writer_tests5/tdf122045.py | 2 +- sw/qa/uitest/writer_tests5/tdf122722.py | 2 +- sw/qa/uitest/writer_tests5/tdf123378.py | 2 +- sw/qa/uitest/writer_tests5/tdf123446.py | 2 +- sw/qa/uitest/writer_tests5/titlePage.py | 2 +- sw/qa/uitest/writer_tests5/xwindow.py | 2 +- sw/qa/uitest/writer_tests5/zoom.py | 2 +- sw/qa/uitest/writer_tests6/infobar.py | 6 +++--- sw/qa/uitest/writer_tests6/tdf107847.py | 2 +- sw/qa/uitest/writer_tests6/tdf118883.py | 2 +- sw/qa/uitest/writer_tests6/tdf125104.py | 2 +- sw/qa/uitest/writer_tests6/tdf126168.py | 2 +- sw/qa/uitest/writer_tests6/tdf128431.py | 2 +- sw/qa/uitest/writer_tests6/tdf131041.py | 2 +- sw/qa/uitest/writer_tests6/tdf44837.py | 2 +- sw/qa/uitest/writer_tests7/tdf109083.py | 2 +- sw/qa/uitest/writer_tests7/tdf115853.py | 2 +- sw/qa/uitest/writer_tests7/tdf119661.py | 2 +- sw/qa/uitest/writer_tests7/tdf133348.py | 2 +- sw/qa/uitest/writer_tests7/tdf140731.py | 2 +- sw/qa/uitest/writer_tests7/tdf140863.py | 2 +- 103 files changed, 168 insertions(+), 168 deletions(-) (limited to 'sw') diff --git a/sw/qa/uitest/chapterNumbering/chapterNumbering.py b/sw/qa/uitest/chapterNumbering/chapterNumbering.py index c1fe43f7caab..227321fbeaa9 100644 --- a/sw/qa/uitest/chapterNumbering/chapterNumbering.py +++ b/sw/qa/uitest/chapterNumbering/chapterNumbering.py @@ -17,7 +17,7 @@ from uitest.uihelper.common import change_measurement_unit class WriterChapterNumbering(UITestCase): def test_chapter_numbering_dialog(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): change_measurement_unit(self, "Millimeter") diff --git a/sw/qa/uitest/chapterNumbering/tdf140528.py b/sw/qa/uitest/chapterNumbering/tdf140528.py index 0fc4fc1b51cb..9d8ec79b942e 100644 --- a/sw/qa/uitest/chapterNumbering/tdf140528.py +++ b/sw/qa/uitest/chapterNumbering/tdf140528.py @@ -13,7 +13,7 @@ from uitest.uihelper.common import select_pos class Tdf140528(UITestCase): def test_tdf140528(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:ChapterNumberingDialog") as xDialog: diff --git a/sw/qa/uitest/chart/tdf138556.py b/sw/qa/uitest/chart/tdf138556.py index 6f06a546bb94..6d6ce8105ea8 100644 --- a/sw/qa/uitest/chart/tdf138556.py +++ b/sw/qa/uitest/chart/tdf138556.py @@ -17,7 +17,7 @@ class tdf138556( UITestCase ): def test_stock_chart13_insert_series( self ): #Start LibreOffice Writer - with self.ui_test.create_doc_in_start_center_guarded( "writer" ): + with self.ui_test.create_doc_in_start_center( "writer" ): xMainTop = self.xUITest.getTopFocusWindow() #Insert Chart diff --git a/sw/qa/uitest/classification/classification.py b/sw/qa/uitest/classification/classification.py index ab0c88939525..429453797613 100644 --- a/sw/qa/uitest/classification/classification.py +++ b/sw/qa/uitest/classification/classification.py @@ -38,7 +38,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class classification(UITestCase): def test_document_classification_dialog(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() with self.ui_test.execute_dialog_through_command(".uno:ClassificationDialog") as xDialog: classificationEditWindow = xDialog.getChild("classificationEditWindow") @@ -98,7 +98,7 @@ class classification(UITestCase): def test_paragraph_classification_dialog(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() #+ new file and do it only for Paragraph classification (no watermark!) with self.ui_test.execute_dialog_through_command(".uno:ParagraphClassificationDialog") as xDialog: @@ -124,7 +124,7 @@ class classification(UITestCase): def test_paragraph_classification_dialog_text(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() #+ new file and do it only for Paragraph classification (no watermark!) with self.ui_test.execute_dialog_through_command(".uno:ParagraphClassificationDialog") as xDialog: diff --git a/sw/qa/uitest/findBar/findbar.py b/sw/qa/uitest/findBar/findbar.py index 288a9df1013b..577885411c07 100644 --- a/sw/qa/uitest/findBar/findbar.py +++ b/sw/qa/uitest/findBar/findbar.py @@ -16,7 +16,7 @@ class FindBar(UITestCase): def test_find_bar(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") diff --git a/sw/qa/uitest/findBar/tdf136941.py b/sw/qa/uitest/findBar/tdf136941.py index 99b8b33acba7..90b42e60dfd6 100644 --- a/sw/qa/uitest/findBar/tdf136941.py +++ b/sw/qa/uitest/findBar/tdf136941.py @@ -12,7 +12,7 @@ class tdf136941(UITestCase): def test_tdf136941(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") diff --git a/sw/qa/uitest/findBar/tdf138232.py b/sw/qa/uitest/findBar/tdf138232.py index f6ec1161c56d..db57c091f5e5 100644 --- a/sw/qa/uitest/findBar/tdf138232.py +++ b/sw/qa/uitest/findBar/tdf138232.py @@ -12,7 +12,7 @@ class tdf138232(UITestCase): def test_tdf138232(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") diff --git a/sw/qa/uitest/findBar/tdf88608.py b/sw/qa/uitest/findBar/tdf88608.py index 050f234b075e..c9c38f8f5b2a 100644 --- a/sw/qa/uitest/findBar/tdf88608.py +++ b/sw/qa/uitest/findBar/tdf88608.py @@ -12,7 +12,7 @@ class tdf88608(UITestCase): def test_tdf88608(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") diff --git a/sw/qa/uitest/findReplace/findReplace.py b/sw/qa/uitest/findReplace/findReplace.py index d9128ec23e6b..7ad35e4c1851 100644 --- a/sw/qa/uitest/findReplace/findReplace.py +++ b/sw/qa/uitest/findReplace/findReplace.py @@ -94,7 +94,7 @@ class findReplace(UITestCase): #Bug 39022 - find-replace->$1, not pattern def test_tdf39022_replace_regexp(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") type_text(xWriterEdit, "test number1 testnot") @@ -165,7 +165,7 @@ class findReplace(UITestCase): self.ui_test.close_dialog_through_button(xcloseBtn) def test_tdf136577(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") diff --git a/sw/qa/uitest/findReplace/tdf106099.py b/sw/qa/uitest/findReplace/tdf106099.py index 483bf2c3aff6..c3eabef410df 100644 --- a/sw/qa/uitest/findReplace/tdf106099.py +++ b/sw/qa/uitest/findReplace/tdf106099.py @@ -13,7 +13,7 @@ from uitest.uihelper.common import get_state_as_dict class tdf106099(UITestCase): def test_tdf106099_find_format_underline(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() #Find and replace self.ui_test.execute_modeless_dialog_through_command(".uno:SearchDialog") diff --git a/sw/qa/uitest/findReplace/tdf119462.py b/sw/qa/uitest/findReplace/tdf119462.py index 3c3601193311..c892584ed155 100644 --- a/sw/qa/uitest/findReplace/tdf119462.py +++ b/sw/qa/uitest/findReplace/tdf119462.py @@ -13,7 +13,7 @@ from uitest.uihelper.common import get_state_as_dict class tdf119462(UITestCase): def test_tdf119462_find_format(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() #1. Choose Edit > Find and Replace self.ui_test.execute_modeless_dialog_through_command(".uno:SearchDialog") diff --git a/sw/qa/uitest/librelogo/run.py b/sw/qa/uitest/librelogo/run.py index 7d7ca4611f3b..8d8c23d4f3a3 100644 --- a/sw/qa/uitest/librelogo/run.py +++ b/sw/qa/uitest/librelogo/run.py @@ -28,7 +28,7 @@ class LibreLogoTest(UITestCase): self.xUITest.executeCommand(self.LIBRELOGO_PATH %command) def test_librelogo(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") # to check the state of LibreLogo program execution diff --git a/sw/qa/uitest/macro_tests/tdf124413.py b/sw/qa/uitest/macro_tests/tdf124413.py index b2577267b803..fefa47c40a2e 100644 --- a/sw/qa/uitest/macro_tests/tdf124413.py +++ b/sw/qa/uitest/macro_tests/tdf124413.py @@ -12,7 +12,7 @@ class tdf124413(UITestCase): def test_copy_paste_overwriting_undo_redo_in_macro_editor_tdf124413(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): #Start LibreOffice. Go to Tools > Macros > Organize Macros > Basic with self.ui_test.execute_dialog_through_command(".uno:MacroDialog", close_button="") as xDialog: #Open Editor diff --git a/sw/qa/uitest/macro_tests/tdf64690.py b/sw/qa/uitest/macro_tests/tdf64690.py index a764185646a1..cd953d8ca2c0 100644 --- a/sw/qa/uitest/macro_tests/tdf64690.py +++ b/sw/qa/uitest/macro_tests/tdf64690.py @@ -13,7 +13,7 @@ class tdf64690(UITestCase): def test_tdf64690(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:MacroDialog", close_button="edit"): pass diff --git a/sw/qa/uitest/navigator/tdf137274.py b/sw/qa/uitest/navigator/tdf137274.py index b37d6413160b..0905b74f091e 100644 --- a/sw/qa/uitest/navigator/tdf137274.py +++ b/sw/qa/uitest/navigator/tdf137274.py @@ -12,7 +12,7 @@ class tdf137274(UITestCase): def test_tdf137274(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): xMainWindow = self.xUITest.getTopFocusWindow() xWriterEdit = xMainWindow.getChild("writer_edit") diff --git a/sw/qa/uitest/navigator/tdf140257.py b/sw/qa/uitest/navigator/tdf140257.py index b7b5e7aefa3c..bf3ec7209f4c 100644 --- a/sw/qa/uitest/navigator/tdf140257.py +++ b/sw/qa/uitest/navigator/tdf140257.py @@ -24,7 +24,7 @@ class Tdf140257(UITestCase): def test_tdf140257(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xMainWindow = self.xUITest.getTopFocusWindow() xWriterEdit = xMainWindow.getChild("writer_edit") diff --git a/sw/qa/uitest/options/optionsDialog.py b/sw/qa/uitest/options/optionsDialog.py index 20099df1a2d7..086d16726a1a 100644 --- a/sw/qa/uitest/options/optionsDialog.py +++ b/sw/qa/uitest/options/optionsDialog.py @@ -9,7 +9,7 @@ from uitest.framework import UITestCase class optionsDialog(UITestCase): def test_moreIconsDialog(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:OptionsTreeDialog") as xDialog: @@ -29,7 +29,7 @@ class optionsDialog(UITestCase): def test_tdf138596(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:OptionsTreeDialog") as xDialog: xPages = xDialog.getChild("pages") diff --git a/sw/qa/uitest/options/tdf131581.py b/sw/qa/uitest/options/tdf131581.py index aab3865dc51d..d554ab0ef991 100644 --- a/sw/qa/uitest/options/tdf131581.py +++ b/sw/qa/uitest/options/tdf131581.py @@ -10,7 +10,7 @@ from uitest.framework import UITestCase class tdf131581(UITestCase): def test_tdf131581(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): self.xUITest.getTopFocusWindow() diff --git a/sw/qa/uitest/options/tdf78133.py b/sw/qa/uitest/options/tdf78133.py index 79b38e1f6db5..976b98699764 100644 --- a/sw/qa/uitest/options/tdf78133.py +++ b/sw/qa/uitest/options/tdf78133.py @@ -14,7 +14,7 @@ class tdf78133(UITestCase): def test_tdf78133_options_app_colors(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() #New text document #open option, go to App colors diff --git a/sw/qa/uitest/sidebar/stylesSidebar.py b/sw/qa/uitest/sidebar/stylesSidebar.py index 8a7a7a5b1e92..c2950fbab89a 100644 --- a/sw/qa/uitest/sidebar/stylesSidebar.py +++ b/sw/qa/uitest/sidebar/stylesSidebar.py @@ -12,7 +12,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class StylesSidebar(UITestCase): def test_load_styles_from_template(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:LoadStyles", close_button="") as xDialog: xText = xDialog.getChild("text") diff --git a/sw/qa/uitest/sidebar/tdf133189.py b/sw/qa/uitest/sidebar/tdf133189.py index 0c40c8c8d72c..06c3679e2357 100644 --- a/sw/qa/uitest/sidebar/tdf133189.py +++ b/sw/qa/uitest/sidebar/tdf133189.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf133189(UITestCase): def test_tdf133189(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") diff --git a/sw/qa/uitest/sidebar/tdf135590.py b/sw/qa/uitest/sidebar/tdf135590.py index 149ebfc04086..4ed5240c6a53 100644 --- a/sw/qa/uitest/sidebar/tdf135590.py +++ b/sw/qa/uitest/sidebar/tdf135590.py @@ -12,7 +12,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf135590(UITestCase): def test_tdf135590(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): #change measurement to Centimeter change_measurement_unit(self, 'Centimeter') diff --git a/sw/qa/uitest/styleInspector/tdf137105.py b/sw/qa/uitest/styleInspector/tdf137105.py index 6c8d353fba33..c69d0cec82c7 100644 --- a/sw/qa/uitest/styleInspector/tdf137105.py +++ b/sw/qa/uitest/styleInspector/tdf137105.py @@ -9,7 +9,7 @@ from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file class tdf137105(UITestCase): def test_tdf137105(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() text = document.getText() cursor = text.createTextCursor() diff --git a/sw/qa/uitest/styleInspector/tdf137513.py b/sw/qa/uitest/styleInspector/tdf137513.py index 8ca2792bfcf7..e5a02c8f5637 100644 --- a/sw/qa/uitest/styleInspector/tdf137513.py +++ b/sw/qa/uitest/styleInspector/tdf137513.py @@ -9,7 +9,7 @@ from uitest.uihelper.common import get_state_as_dict, type_text class tdf137513(UITestCase): def test_tdf137513(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): self.xUITest.executeCommand(".uno:InsertTable?Columns:short=2&Rows:short=2") diff --git a/sw/qa/uitest/table/insertTableDialog.py b/sw/qa/uitest/table/insertTableDialog.py index b4af11f372bd..99a528fbdcd2 100644 --- a/sw/qa/uitest/table/insertTableDialog.py +++ b/sw/qa/uitest/table/insertTableDialog.py @@ -16,7 +16,7 @@ class WriterInsertTableDialog(UITestCase): def test_tdf104158(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: with self.ui_test.execute_dialog_through_command(".uno:InsertTable") as xDialog: @@ -49,7 +49,7 @@ class WriterInsertTableDialog(UITestCase): def test_cancel_button_insert_table_dialog(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: with self.ui_test.execute_dialog_through_command(".uno:InsertTable", close_button="cancel"): pass diff --git a/sw/qa/uitest/table/sheetToTable.py b/sw/qa/uitest/table/sheetToTable.py index 168b5423b02a..60f3306ec958 100644 --- a/sw/qa/uitest/table/sheetToTable.py +++ b/sw/qa/uitest/table/sheetToTable.py @@ -59,7 +59,7 @@ class sheetToTable(UITestCase): self.assertEqual(table.getCellByName("A2").getString(), "3") def test_tdf129083(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sw/qa/uitest/table/tdf115026.py b/sw/qa/uitest/table/tdf115026.py index 4d1299f068f5..c6b08475dc50 100644 --- a/sw/qa/uitest/table/tdf115026.py +++ b/sw/qa/uitest/table/tdf115026.py @@ -11,7 +11,7 @@ from uitest.uihelper.common import get_state_as_dict class tdf115026(UITestCase): def test_pageBreak_and_tableAutoFormat(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") diff --git a/sw/qa/uitest/table/tdf116737.py b/sw/qa/uitest/table/tdf116737.py index 74b46b63873e..3dd3a28a8b3d 100644 --- a/sw/qa/uitest/table/tdf116737.py +++ b/sw/qa/uitest/table/tdf116737.py @@ -13,7 +13,7 @@ from uitest.uihelper.common import select_pos class tdf116737(UITestCase): def test_tdf116737_select_table_style(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() #Insert => Insert Table / It's not possible to select a table style diff --git a/sw/qa/uitest/table/tdf128593.py b/sw/qa/uitest/table/tdf128593.py index 435b155f4af7..5396a918e59e 100755 --- a/sw/qa/uitest/table/tdf128593.py +++ b/sw/qa/uitest/table/tdf128593.py @@ -9,7 +9,7 @@ from uitest.uihelper.common import get_state_as_dict class tdf128593(UITestCase): def test_tdf128593_table_background_color(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): MainWindow = self.xUITest.getTopFocusWindow() with self.ui_test.execute_dialog_through_command(".uno:InsertTable"): diff --git a/sw/qa/uitest/table/textToTable.py b/sw/qa/uitest/table/textToTable.py index dcadce096536..15501a24b931 100644 --- a/sw/qa/uitest/table/textToTable.py +++ b/sw/qa/uitest/table/textToTable.py @@ -12,7 +12,7 @@ from uitest.uihelper.common import get_url_for_data_file, type_text class textToTable(UITestCase): def test_text_to_table(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") #Enter A;B ; select the text ; dialog Text to table - Semicolon; verify diff --git a/sw/qa/uitest/ui/fmtui/fmtui.py b/sw/qa/uitest/ui/fmtui/fmtui.py index 8ab79c8d9961..bd6963db8581 100644 --- a/sw/qa/uitest/ui/fmtui/fmtui.py +++ b/sw/qa/uitest/ui/fmtui/fmtui.py @@ -15,7 +15,7 @@ class TestTmpdlg(UITestCase): def test_para_style_semi_transparent_text(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() with self.ui_test.execute_dialog_through_command(".uno:EditStyle", close_button="cancel") as xDialog: diff --git a/sw/qa/uitest/ui/index/index.py b/sw/qa/uitest/ui/index/index.py index 3a222fb2b893..8b76b04bc5a5 100644 --- a/sw/qa/uitest/ui/index/index.py +++ b/sw/qa/uitest/ui/index/index.py @@ -17,7 +17,7 @@ class TestSwuiidxmrk(UITestCase): def test_bibliography_page_number_insert(self): # Given an empty Writer document: - 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: self.ui_test.execute_modeless_dialog_through_command(".uno:InsertAuthoritiesEntry") insert_entry = self.xUITest.getTopFocusWindow() diff --git a/sw/qa/uitest/writer_tests/comments.py b/sw/qa/uitest/writer_tests/comments.py index a8dd761a5456..b7e35b274e68 100644 --- a/sw/qa/uitest/writer_tests/comments.py +++ b/sw/qa/uitest/writer_tests/comments.py @@ -16,7 +16,7 @@ class Comments(UITestCase): def test_comments_features(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): xMainWindow = self.xUITest.getTopFocusWindow() @@ -63,7 +63,7 @@ class Comments(UITestCase): def test_multi_comments(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): xMainWindow = self.xUITest.getTopFocusWindow() diff --git a/sw/qa/uitest/writer_tests/insertCaption.py b/sw/qa/uitest/writer_tests/insertCaption.py index 20fe7dc3e786..fff0f0d09e02 100644 --- a/sw/qa/uitest/writer_tests/insertCaption.py +++ b/sw/qa/uitest/writer_tests/insertCaption.py @@ -11,7 +11,7 @@ from uitest.uihelper.common import select_pos class insertCaption(UITestCase): def test_insert_caption(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: with self.ui_test.execute_dialog_through_command(".uno:InsertFrame") as xDialogFr: xWidth = xDialogFr.getChild("width") diff --git a/sw/qa/uitest/writer_tests/tdf134734.py b/sw/qa/uitest/writer_tests/tdf134734.py index 7a3c78ebce2e..945c03b526ed 100644 --- a/sw/qa/uitest/writer_tests/tdf134734.py +++ b/sw/qa/uitest/writer_tests/tdf134734.py @@ -13,7 +13,7 @@ import importlib class TestClass(UITestCase): def test_master_page_background(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: # set margins and fill color with self.ui_test.execute_dialog_through_command(".uno:PageDialog") as DrawPageDialog: diff --git a/sw/qa/uitest/writer_tests/tdf137459_editeng_ctrl-DEL.py b/sw/qa/uitest/writer_tests/tdf137459_editeng_ctrl-DEL.py index 72ccb4a65692..c33890ca9bd2 100644 --- a/sw/qa/uitest/writer_tests/tdf137459_editeng_ctrl-DEL.py +++ b/sw/qa/uitest/writer_tests/tdf137459_editeng_ctrl-DEL.py @@ -15,7 +15,7 @@ class tdf137459(UITestCase): def test_tdf137459(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): # adding new Comment self.xUITest.executeCommand(".uno:InsertAnnotation") diff --git a/sw/qa/uitest/writer_tests/tdf53460.py b/sw/qa/uitest/writer_tests/tdf53460.py index 661c08cd1c77..240b64ffa062 100644 --- a/sw/qa/uitest/writer_tests/tdf53460.py +++ b/sw/qa/uitest/writer_tests/tdf53460.py @@ -12,7 +12,7 @@ class tdf53460(UITestCase): def test_resize_table_with_keyboard_tdf53460(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") #-insert a table (by default 2x2) diff --git a/sw/qa/uitest/writer_tests/tdf78068.py b/sw/qa/uitest/writer_tests/tdf78068.py index ff6080622fd2..07a8016cb789 100644 --- a/sw/qa/uitest/writer_tests/tdf78068.py +++ b/sw/qa/uitest/writer_tests/tdf78068.py @@ -12,7 +12,7 @@ from uitest.uihelper.common import select_pos class tdf78068(UITestCase): def test_tdf78068_format_paragraph_crash(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") #- add some text diff --git a/sw/qa/uitest/writer_tests/tdf93068.py b/sw/qa/uitest/writer_tests/tdf93068.py index dc7a13b870db..ab66e7a5db79 100644 --- a/sw/qa/uitest/writer_tests/tdf93068.py +++ b/sw/qa/uitest/writer_tests/tdf93068.py @@ -10,7 +10,7 @@ class tdf93068(UITestCase): def test_tdf93068(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: self.xUITest.getTopFocusWindow() diff --git a/sw/qa/uitest/writer_tests/trackedChanges.py b/sw/qa/uitest/writer_tests/trackedChanges.py index ed79c53b86d7..f1eb2fb23f4a 100644 --- a/sw/qa/uitest/writer_tests/trackedChanges.py +++ b/sw/qa/uitest/writer_tests/trackedChanges.py @@ -12,7 +12,7 @@ class trackedchanges(UITestCase): def test_tdf91270(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") @@ -31,7 +31,7 @@ class trackedchanges(UITestCase): def test_tracked_changes_accept(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") @@ -50,7 +50,7 @@ class trackedchanges(UITestCase): def test_tracked_changes_acceptall(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") @@ -71,7 +71,7 @@ class trackedchanges(UITestCase): def test_tracked_changes_reject(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") @@ -91,7 +91,7 @@ class trackedchanges(UITestCase): def test_tracked_changes_rejectall(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") @@ -111,7 +111,7 @@ class trackedchanges(UITestCase): def test_tracked_changes_zprev_next(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") diff --git a/sw/qa/uitest/writer_tests/watermark.py b/sw/qa/uitest/writer_tests/watermark.py index a61863626e06..008f958c328b 100644 --- a/sw/qa/uitest/writer_tests/watermark.py +++ b/sw/qa/uitest/writer_tests/watermark.py @@ -12,7 +12,7 @@ from uitest.uihelper.common import get_state_as_dict class watermark(UITestCase): def test_insert_watermark(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() with self.ui_test.execute_dialog_through_command(".uno:Watermark") as xDialog: diff --git a/sw/qa/uitest/writer_tests/wordCount.py b/sw/qa/uitest/writer_tests/wordCount.py index 60e573f88b8a..00d2e5963f60 100644 --- a/sw/qa/uitest/writer_tests/wordCount.py +++ b/sw/qa/uitest/writer_tests/wordCount.py @@ -13,7 +13,7 @@ class writerWordCount(UITestCase): def test_word_count_dialog(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") @@ -76,7 +76,7 @@ class writerWordCount(UITestCase): self.ui_test.close_dialog_through_button(xCloseBtn) def test_tdf91100(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() self.ui_test.execute_modeless_dialog_through_command(".uno:WordCountDialog") @@ -113,7 +113,7 @@ class writerWordCount(UITestCase): def test_word_count_interpunction_counted_tdf56975_a(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") #Open writer, enter "Testing one two! Test?" @@ -145,7 +145,7 @@ class writerWordCount(UITestCase): def test_word_count_interpunction_counted_tdf56975_b(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") #1. Create a new text document. diff --git a/sw/qa/uitest/writer_tests2/asianPhoneticGuide.py b/sw/qa/uitest/writer_tests2/asianPhoneticGuide.py index 11f417907120..5304a692d9f6 100644 --- a/sw/qa/uitest/writer_tests2/asianPhoneticGuide.py +++ b/sw/qa/uitest/writer_tests2/asianPhoneticGuide.py @@ -11,7 +11,7 @@ from uitest.uihelper.common import select_by_text class asianPhoneticGuide(UITestCase): def test_asian_phonetic_guide(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() self.ui_test.execute_modeless_dialog_through_command(".uno:RubyDialog") diff --git a/sw/qa/uitest/writer_tests2/bookmark.py b/sw/qa/uitest/writer_tests2/bookmark.py index c097f1f87896..62cf57735d60 100644 --- a/sw/qa/uitest/writer_tests2/bookmark.py +++ b/sw/qa/uitest/writer_tests2/bookmark.py @@ -15,7 +15,7 @@ class bookmarkDialog(UITestCase): def test_bookmark_dialog(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:InsertBookmark", close_button="insert"): pass @@ -45,7 +45,7 @@ class bookmarkDialog(UITestCase): def test_bookmark_dialog_rename(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:InsertBookmark", close_button="insert"): pass @@ -68,7 +68,7 @@ class bookmarkDialog(UITestCase): def test_bookmark_dialog_goto(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") diff --git a/sw/qa/uitest/writer_tests2/deleteAllComments.py b/sw/qa/uitest/writer_tests2/deleteAllComments.py index da37822130b9..a67b0887a949 100644 --- a/sw/qa/uitest/writer_tests2/deleteAllComments.py +++ b/sw/qa/uitest/writer_tests2/deleteAllComments.py @@ -11,7 +11,7 @@ class DeleteAllComments(UITestCase): def test_comments_delete(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") @@ -31,7 +31,7 @@ class DeleteAllComments(UITestCase): def test_comment_trackchanges(self): #tdf111524 - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") diff --git a/sw/qa/uitest/writer_tests2/documentProperties.py b/sw/qa/uitest/writer_tests2/documentProperties.py index 896cdb2f9e26..5b1eeb583c8c 100644 --- a/sw/qa/uitest/writer_tests2/documentProperties.py +++ b/sw/qa/uitest/writer_tests2/documentProperties.py @@ -29,7 +29,7 @@ class documentProperties(UITestCase): self.assertEqual(aExpected, get_state_as_dict(xRemoveBtn)['ReallyVisible']) def test_open_documentProperties_writer(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:SetDocumentProperties") as xDialog: xResetBtn = xDialog.getChild("reset") xResetBtn.executeAction("CLICK", tuple()) diff --git a/sw/qa/uitest/writer_tests2/exchangeDatabase.py b/sw/qa/uitest/writer_tests2/exchangeDatabase.py index 6a1df21dfd97..1932f331b27c 100644 --- a/sw/qa/uitest/writer_tests2/exchangeDatabase.py +++ b/sw/qa/uitest/writer_tests2/exchangeDatabase.py @@ -12,7 +12,7 @@ class exchangeDB(UITestCase): def test_exchange_database(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:ChangeDatabaseField", close_button="close"): pass @@ -20,7 +20,7 @@ class exchangeDB(UITestCase): def test_exchange_database2(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:ChangeDatabaseField") as xExDBDlg: xTreelist = xExDBDlg.getChild("availablelb") diff --git a/sw/qa/uitest/writer_tests2/fontworks.py b/sw/qa/uitest/writer_tests2/fontworks.py index f62acabe49b8..716bc46c1993 100644 --- a/sw/qa/uitest/writer_tests2/fontworks.py +++ b/sw/qa/uitest/writer_tests2/fontworks.py @@ -15,7 +15,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class fontWorksDialog(UITestCase): def test_fontwork_selector(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") diff --git a/sw/qa/uitest/writer_tests2/formatBulletsNumbering.py b/sw/qa/uitest/writer_tests2/formatBulletsNumbering.py index 162b7ec9491e..596a160eeec6 100644 --- a/sw/qa/uitest/writer_tests2/formatBulletsNumbering.py +++ b/sw/qa/uitest/writer_tests2/formatBulletsNumbering.py @@ -15,7 +15,7 @@ from uitest.uihelper.common import change_measurement_unit class formatBulletsNumbering(UITestCase): def test_bullets_and_numbering_dialog_tab_position(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() change_measurement_unit(self, "Millimeter") @@ -50,7 +50,7 @@ class formatBulletsNumbering(UITestCase): def test_bullets_and_numbering_dialog_tab_position2(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() with self.ui_test.execute_dialog_through_command(".uno:BulletsAndNumberingDialog") as xDialog: @@ -69,7 +69,7 @@ class formatBulletsNumbering(UITestCase): def test_bullets_and_numbering_dialog_tab_customize(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() with self.ui_test.execute_dialog_through_command(".uno:BulletsAndNumberingDialog") as xDialog: @@ -132,7 +132,7 @@ class formatBulletsNumbering(UITestCase): def test_bullets_and_numbering_tab_move(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") @@ -163,7 +163,7 @@ class formatBulletsNumbering(UITestCase): def test_bullets_and_numbering_button_move(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() change_measurement_unit(self, "Millimeter") @@ -193,7 +193,7 @@ class formatBulletsNumbering(UITestCase): def test_bullets_and_numbering_selection(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() # Test Bullet Page diff --git a/sw/qa/uitest/writer_tests2/formatCharacter.py b/sw/qa/uitest/writer_tests2/formatCharacter.py index eb68e3dc0dde..f17be0c42697 100644 --- a/sw/qa/uitest/writer_tests2/formatCharacter.py +++ b/sw/qa/uitest/writer_tests2/formatCharacter.py @@ -14,7 +14,7 @@ from uitest.uihelper.common import select_by_text class formatCharacter(UITestCase): def test_format_character_tab_font(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() with self.ui_test.execute_dialog_through_command(".uno:FontDialog") as xDialog: @@ -56,7 +56,7 @@ class formatCharacter(UITestCase): def test_format_character_tab_font_effects(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() with self.ui_test.execute_dialog_through_command(".uno:FontDialog") as xDialog: @@ -107,7 +107,7 @@ class formatCharacter(UITestCase): def test_format_character_tab_hyperlink(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() with self.ui_test.execute_dialog_through_command(".uno:FontDialog") as xDialog: @@ -147,7 +147,7 @@ class formatCharacter(UITestCase): def test_format_character_tab_asian_layout(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() with self.ui_test.execute_dialog_through_command(".uno:FontDialog") as xDialog: @@ -166,7 +166,7 @@ class formatCharacter(UITestCase): self.assertEqual(get_state_as_dict(xTwolines)["Selected"], "true") def test_format_character_tab_position(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() with self.ui_test.execute_dialog_through_command(".uno:FontDialog") as xDialog: @@ -211,7 +211,7 @@ class formatCharacter(UITestCase): def test_format_character_tab_position_scalewidthsb(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() with self.ui_test.execute_dialog_through_command(".uno:FontDialog") as xDialog: diff --git a/sw/qa/uitest/writer_tests2/formatParagraph.py b/sw/qa/uitest/writer_tests2/formatParagraph.py index bc6a30475b3d..fe48168f2432 100644 --- a/sw/qa/uitest/writer_tests2/formatParagraph.py +++ b/sw/qa/uitest/writer_tests2/formatParagraph.py @@ -15,7 +15,7 @@ from uitest.uihelper.common import change_measurement_unit class formatParagraph(UITestCase): def test_format_paragraph_tab_indents_spacing(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() with self.ui_test.execute_dialog_through_command(".uno:ParagraphDialog") as xDialog: @@ -69,7 +69,7 @@ class formatParagraph(UITestCase): def test_format_paragraph_tab_alignment(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() with self.ui_test.execute_dialog_through_command(".uno:ParagraphDialog") as xDialog: @@ -112,7 +112,7 @@ class formatParagraph(UITestCase): def test_format_paragraph_tab_text_flow(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() with self.ui_test.execute_dialog_through_command(".uno:ParagraphDialog") as xDialog: @@ -183,7 +183,7 @@ class formatParagraph(UITestCase): def test_format_paragraph_tab_asian_typography(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() with self.ui_test.execute_dialog_through_command(".uno:ParagraphDialog") as xDialog: @@ -214,7 +214,7 @@ class formatParagraph(UITestCase): def test_format_paragraph_tab_outline_numbering(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() with self.ui_test.execute_dialog_through_command(".uno:ParagraphDialog") as xDialog: @@ -249,7 +249,7 @@ class formatParagraph(UITestCase): def test_format_paragraph_tab_tabs(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() change_measurement_unit(self, "Centimeter") @@ -362,7 +362,7 @@ class formatParagraph(UITestCase): def test_format_paragraph_tab_drop_caps(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() with self.ui_test.execute_dialog_through_command(".uno:ParagraphDialog") as xDialog: @@ -402,7 +402,7 @@ class formatParagraph(UITestCase): def test_format_paragraph_tab_borders(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() change_measurement_unit(self, "Centimeter") @@ -452,7 +452,7 @@ class formatParagraph(UITestCase): def test_format_paragraph_area(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() with self.ui_test.execute_dialog_through_command(".uno:ParagraphDialog", close_button="cancel") as xDialog: @@ -472,7 +472,7 @@ class formatParagraph(UITestCase): xHatch.executeAction("CLICK", tuple()) def test_format_paragraph_transparency(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() with self.ui_test.execute_dialog_through_command(".uno:ParagraphDialog") as xDialog: diff --git a/sw/qa/uitest/writer_tests2/horizontalLine.py b/sw/qa/uitest/writer_tests2/horizontalLine.py index d54a273e239a..789f8033e2a1 100644 --- a/sw/qa/uitest/writer_tests2/horizontalLine.py +++ b/sw/qa/uitest/writer_tests2/horizontalLine.py @@ -11,7 +11,7 @@ from uitest.uihelper.common import get_state_as_dict, type_text class WriterInsertHorizontalLine(UITestCase): def test_insert_horizontal_line(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") diff --git a/sw/qa/uitest/writer_tests2/insertFootnote.py b/sw/qa/uitest/writer_tests2/insertFootnote.py index 17f9d354ac31..4ce9f6991bfd 100644 --- a/sw/qa/uitest/writer_tests2/insertFootnote.py +++ b/sw/qa/uitest/writer_tests2/insertFootnote.py @@ -10,7 +10,7 @@ from uitest.uihelper.common import type_text class insertFootnote(UITestCase): def test_insert_footnote(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") diff --git a/sw/qa/uitest/writer_tests2/pasteSpecial.py b/sw/qa/uitest/writer_tests2/pasteSpecial.py index 97da454d3e4a..805bec0951d2 100644 --- a/sw/qa/uitest/writer_tests2/pasteSpecial.py +++ b/sw/qa/uitest/writer_tests2/pasteSpecial.py @@ -10,7 +10,7 @@ from uitest.uihelper.common import type_text class PasteSpecial(UITestCase): def test_pasteSpecial(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") diff --git a/sw/qa/uitest/writer_tests2/tdf116474.py b/sw/qa/uitest/writer_tests2/tdf116474.py index 947a30921d1b..71f360ddfb61 100644 --- a/sw/qa/uitest/writer_tests2/tdf116474.py +++ b/sw/qa/uitest/writer_tests2/tdf116474.py @@ -11,7 +11,7 @@ from uitest.uihelper.common import get_url_for_data_file class tdf116474(UITestCase): def test_tdf116474_insert_caption_undo(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() text = document.getText() cursor = text.createTextCursor() diff --git a/sw/qa/uitest/writer_tests3/autoredactDialog.py b/sw/qa/uitest/writer_tests3/autoredactDialog.py index f766b25ad684..328b228b60bc 100644 --- a/sw/qa/uitest/writer_tests3/autoredactDialog.py +++ b/sw/qa/uitest/writer_tests3/autoredactDialog.py @@ -38,7 +38,7 @@ class AutoRedactDialog(UITestCase): self.assertEqual(len(xTargetsListbox.getChildren()), 0) def test_add_target(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:AutoRedactDoc", close_button="cancel") as xDialog: xAddBtn = xDialog.getChild("add") @@ -94,7 +94,7 @@ class AutoRedactDialog(UITestCase): def test_edit_target(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:AutoRedactDoc", close_button="cancel") as xDialog: xAddBtn = xDialog.getChild("add") xEditBtn = xDialog.getChild("edit") diff --git a/sw/qa/uitest/writer_tests3/customizeDialog.py b/sw/qa/uitest/writer_tests3/customizeDialog.py index 19a66401567a..9e93d5563344 100644 --- a/sw/qa/uitest/writer_tests3/customizeDialog.py +++ b/sw/qa/uitest/writer_tests3/customizeDialog.py @@ -15,13 +15,13 @@ class ConfigureDialog(UITestCase): def test_open_ConfigureDialog_writer(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:ConfigureDialog", close_button="cancel"): pass def test_search_filter(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:ConfigureDialog", close_button="cancel") as xDialog: xfunc = xDialog.getChild("functions") @@ -58,7 +58,7 @@ class ConfigureDialog(UITestCase): def test_category_listbox(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:ConfigureDialog", close_button="cancel") as xDialog: xFunc = xDialog.getChild("functions") @@ -78,7 +78,7 @@ class ConfigureDialog(UITestCase): def test_tdf133862(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): self.xUITest.executeCommand(".uno:InsertObjectStarMath") @@ -89,7 +89,7 @@ class ConfigureDialog(UITestCase): def test_gear_button_menu(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:ConfigureDialog", close_button="cancel") as xDialog: diff --git a/sw/qa/uitest/writer_tests3/hyperlinkdialog.py b/sw/qa/uitest/writer_tests3/hyperlinkdialog.py index 36ba00303a2b..37c9c3990267 100644 --- a/sw/qa/uitest/writer_tests3/hyperlinkdialog.py +++ b/sw/qa/uitest/writer_tests3/hyperlinkdialog.py @@ -18,7 +18,7 @@ class HyperlinkDialog(UITestCase): def test_hyperlink_dialog_vertical_tab(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): MainWindow = self.xUITest.getTopFocusWindow() with self.ui_test.execute_dialog_through_command(".uno:HyperlinkDialog", close_button="cancel") as xDialog: @@ -47,7 +47,7 @@ class HyperlinkDialog(UITestCase): def test_insert_hyperlink(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): xMainWindow = self.xUITest.getTopFocusWindow() with self.ui_test.execute_dialog_through_command(".uno:HyperlinkDialog") as xDialog: @@ -87,7 +87,7 @@ class HyperlinkDialog(UITestCase): if re.compile(r'XMLHELP\b').search(os.getenv('BUILD_TYPE')): return - 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") diff --git a/sw/qa/uitest/writer_tests3/insertEndnote.py b/sw/qa/uitest/writer_tests3/insertEndnote.py index 464a4cf2ad34..956e9ee6e037 100644 --- a/sw/qa/uitest/writer_tests3/insertEndnote.py +++ b/sw/qa/uitest/writer_tests3/insertEndnote.py @@ -10,7 +10,7 @@ from uitest.uihelper.common import type_text class insertEndnote(UITestCase): def test_insert_endnote(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") diff --git a/sw/qa/uitest/writer_tests3/insertEnvelope.py b/sw/qa/uitest/writer_tests3/insertEnvelope.py index e5b351aa142a..9b2436af1df9 100644 --- a/sw/qa/uitest/writer_tests3/insertEnvelope.py +++ b/sw/qa/uitest/writer_tests3/insertEnvelope.py @@ -14,7 +14,7 @@ from uitest.uihelper.common import get_state_as_dict class WriterInsertEnvelope(UITestCase): def test_insert_envelope(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:InsertEnvelope", close_button="user") as xDialog: xAddrTxt= xDialog.getChild("addredit") xSenderTxt = xDialog.getChild("senderedit") diff --git a/sw/qa/uitest/writer_tests3/insertFootEndnote.py b/sw/qa/uitest/writer_tests3/insertFootEndnote.py index 7ec5f99b81d4..198c540f5521 100644 --- a/sw/qa/uitest/writer_tests3/insertFootEndnote.py +++ b/sw/qa/uitest/writer_tests3/insertFootEndnote.py @@ -10,7 +10,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class insertFootEndnote(UITestCase): def test_insert_foot_endnote(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() #Automatic - Footnote diff --git a/sw/qa/uitest/writer_tests3/insertPageFooter.py b/sw/qa/uitest/writer_tests3/insertPageFooter.py index a230519618a6..9a92f81e1ed0 100644 --- a/sw/qa/uitest/writer_tests3/insertPageFooter.py +++ b/sw/qa/uitest/writer_tests3/insertPageFooter.py @@ -35,7 +35,7 @@ class WriterInsertPageFooter(UITestCase): document.StyleFamilies.PageStyles.Standard.FooterIsOn, False) def test_footer(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: self.insert_footer() @@ -43,7 +43,7 @@ class WriterInsertPageFooter(UITestCase): def test_tdf107427(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: self.insert_footer() diff --git a/sw/qa/uitest/writer_tests3/insertQrCodeGen.py b/sw/qa/uitest/writer_tests3/insertQrCodeGen.py index 5ca2fce954e0..caf7bf660861 100644 --- a/sw/qa/uitest/writer_tests3/insertQrCodeGen.py +++ b/sw/qa/uitest/writer_tests3/insertQrCodeGen.py @@ -11,7 +11,7 @@ from com.sun.star.lang import IndexOutOfBoundsException class insertQrCode(UITestCase): def test_insert_qr_code(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() # cancel the dialog without doing anything @@ -43,7 +43,7 @@ class insertQrCode(UITestCase): def test_insert_qr_code_gen2(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() with self.ui_test.execute_dialog_through_command(".uno:InsertQrCode") as xDialog: diff --git a/sw/qa/uitest/writer_tests3/insertSignatureLine.py b/sw/qa/uitest/writer_tests3/insertSignatureLine.py index 102c0e584f74..6f7642826fff 100644 --- a/sw/qa/uitest/writer_tests3/insertSignatureLine.py +++ b/sw/qa/uitest/writer_tests3/insertSignatureLine.py @@ -11,7 +11,7 @@ from com.sun.star.lang import IndexOutOfBoundsException class insertSignatureLine(UITestCase): def test_insert_signature_line(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() # cancel the dialog without doing anything @@ -50,7 +50,7 @@ class insertSignatureLine(UITestCase): def test_insert_signature_line2(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() with self.ui_test.execute_dialog_through_command(".uno:InsertSignatureLine") as xDialog: diff --git a/sw/qa/uitest/writer_tests3/lineNumbering.py b/sw/qa/uitest/writer_tests3/lineNumbering.py index 68092a554f98..4567097964c9 100644 --- a/sw/qa/uitest/writer_tests3/lineNumbering.py +++ b/sw/qa/uitest/writer_tests3/lineNumbering.py @@ -14,7 +14,7 @@ from uitest.uihelper.common import change_measurement_unit class WriterLineNumbering(UITestCase): def test_line_numbering_dialog(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): change_measurement_unit(self, "Centimeter") @@ -73,7 +73,7 @@ class WriterLineNumbering(UITestCase): self.assertEqual(get_state_as_dict(xrestarteverynewpage)["Selected"], "true") def test_tdf86185(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:LineNumberingDialog", close_button="cancel") as xDialog: xshownumbering = xDialog.getChild("shownumbering") diff --git a/sw/qa/uitest/writer_tests3/pageDialog.py b/sw/qa/uitest/writer_tests3/pageDialog.py index d613b9436091..e11793226ff7 100644 --- a/sw/qa/uitest/writer_tests3/pageDialog.py +++ b/sw/qa/uitest/writer_tests3/pageDialog.py @@ -113,7 +113,7 @@ class WriterPageDialog(UITestCase): def test_area_tab(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): buttons = ['btnbitmap', 'btncolor', 'btngradient', 'btnhatch', 'btnpattern'] for index, button in enumerate(buttons): @@ -142,7 +142,7 @@ class WriterPageDialog(UITestCase): "C5 Envelope", "C4 Envelope", "#6¾ Envelope", "#7¾ (Monarch) Envelope", "#9 Envelope", "#10 Envelope", "#11 Envelope", "#12 Envelope", "Japanese Postcard"] - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): for i in range(30): with self.subTest(i=i): @@ -158,7 +158,7 @@ class WriterPageDialog(UITestCase): def test_orientation(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: self.assertEqual( document.StyleFamilies.PageStyles.Standard.IsLandscape, False) @@ -185,7 +185,7 @@ class WriterPageDialog(UITestCase): lTextDirection = ['Left-to-right (horizontal)', 'Right-to-left (horizontal)', 'Right-to-left (vertical)', 'Left-to-right (vertical)'] - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: for i in range(4): with self.subTest(i=i): @@ -204,7 +204,7 @@ class WriterPageDialog(UITestCase): def test_cancel_button_page_dialog(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:PageDialog", close_button="cancel") as xDialog: pass diff --git a/sw/qa/uitest/writer_tests3/sort.py b/sw/qa/uitest/writer_tests3/sort.py index ab857885e723..7a524c17056a 100644 --- a/sw/qa/uitest/writer_tests3/sort.py +++ b/sw/qa/uitest/writer_tests3/sort.py @@ -12,7 +12,7 @@ from uitest.uihelper.common import type_text class WriterSort(UITestCase): def test_sort(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") @@ -32,7 +32,7 @@ class WriterSort(UITestCase): def test_sort_numerical(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") diff --git a/sw/qa/uitest/writer_tests3/specialCharacter.py b/sw/qa/uitest/writer_tests3/specialCharacter.py index 527901e95506..0ac8afa7cf71 100644 --- a/sw/qa/uitest/writer_tests3/specialCharacter.py +++ b/sw/qa/uitest/writer_tests3/specialCharacter.py @@ -15,7 +15,7 @@ from uitest.uihelper.common import select_pos class specialCharacter(UITestCase): def test_special_character(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() diff --git a/sw/qa/uitest/writer_tests3/tdf79236.py b/sw/qa/uitest/writer_tests3/tdf79236.py index 3c0fc827f165..cc7fc12b6cd3 100644 --- a/sw/qa/uitest/writer_tests3/tdf79236.py +++ b/sw/qa/uitest/writer_tests3/tdf79236.py @@ -11,7 +11,7 @@ class tdf79236(UITestCase): def test_paragraph(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") diff --git a/sw/qa/uitest/writer_tests4/insertBreakDialog.py b/sw/qa/uitest/writer_tests4/insertBreakDialog.py index 835318ff4d01..3ceaad5f01c0 100644 --- a/sw/qa/uitest/writer_tests4/insertBreakDialog.py +++ b/sw/qa/uitest/writer_tests4/insertBreakDialog.py @@ -16,7 +16,7 @@ class WriterInsertBreakDialog(UITestCase): def test_insert_line_break(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:InsertBreak") as xDialog: xOption = xDialog.getChild("linerb") @@ -27,7 +27,7 @@ class WriterInsertBreakDialog(UITestCase): def test_insert_column_break(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:InsertBreak") as xDialog: xOption = xDialog.getChild("columnrb") @@ -38,7 +38,7 @@ class WriterInsertBreakDialog(UITestCase): def test_insert_page_break(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): for i in range(9): with self.subTest(i=i): @@ -55,7 +55,7 @@ class WriterInsertBreakDialog(UITestCase): def test_cancel_button_insert_line_break_dialog(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:InsertBreak", close_button="cancel"): pass diff --git a/sw/qa/uitest/writer_tests4/insertPageHeader.py b/sw/qa/uitest/writer_tests4/insertPageHeader.py index e9a239e0e247..d062ce6d9377 100644 --- a/sw/qa/uitest/writer_tests4/insertPageHeader.py +++ b/sw/qa/uitest/writer_tests4/insertPageHeader.py @@ -34,7 +34,7 @@ class WriterInsertPageHeader(UITestCase): document.StyleFamilies.PageStyles.Standard.HeaderIsOn, False) def test_header(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: self.insert_header() @@ -42,7 +42,7 @@ class WriterInsertPageHeader(UITestCase): def test_tdf107427(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: self.insert_header() diff --git a/sw/qa/uitest/writer_tests4/spellDialog.py b/sw/qa/uitest/writer_tests4/spellDialog.py index 6b014326e12d..1532fc025a1c 100644 --- a/sw/qa/uitest/writer_tests4/spellDialog.py +++ b/sw/qa/uitest/writer_tests4/spellDialog.py @@ -59,7 +59,7 @@ frog, dogg, catt""" # This automates the steps described in the bug report tdf#46852 # Step 1: Create a document with repetitious misspelled words - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: cursor = document.getCurrentController().getViewCursor() # Inserted text must be en_US, so make sure to set language in current location cursor.CharLocale = Locale("en", "US", "") diff --git a/sw/qa/uitest/writer_tests4/start.py b/sw/qa/uitest/writer_tests4/start.py index c70fffe5fffa..ef78d9bdcc33 100644 --- a/sw/qa/uitest/writer_tests4/start.py +++ b/sw/qa/uitest/writer_tests4/start.py @@ -14,7 +14,7 @@ class SimpleWriterTest(UITestCase): def test_start_writer(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() @@ -27,7 +27,7 @@ class SimpleWriterTest(UITestCase): def test_goto_first_page(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") diff --git a/sw/qa/uitest/writer_tests4/tdf113252.py b/sw/qa/uitest/writer_tests4/tdf113252.py index 97ae278f4d12..396a1d836d32 100644 --- a/sw/qa/uitest/writer_tests4/tdf113252.py +++ b/sw/qa/uitest/writer_tests4/tdf113252.py @@ -12,7 +12,7 @@ from uitest.uihelper.common import select_pos class tdf113252(UITestCase): def test_tdf113252_macro_dialog(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") diff --git a/sw/qa/uitest/writer_tests4/tdf115572.py b/sw/qa/uitest/writer_tests4/tdf115572.py index 11cf993e51db..72bb7238b92d 100644 --- a/sw/qa/uitest/writer_tests4/tdf115572.py +++ b/sw/qa/uitest/writer_tests4/tdf115572.py @@ -15,7 +15,7 @@ class tdf115572(UITestCase): tableText.setString( text ) def test_tdf115572_table_format_gets_reset_deleting_row(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() #insert table 2x2 with self.ui_test.execute_dialog_through_command(".uno:InsertTable"): @@ -40,7 +40,7 @@ class tdf115572(UITestCase): def test_tdf115572_table_format_gets_reset_deleting_column(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() #insert table 2x2 with self.ui_test.execute_dialog_through_command(".uno:InsertTable"): diff --git a/sw/qa/uitest/writer_tests4/tdf115573.py b/sw/qa/uitest/writer_tests4/tdf115573.py index c7b6316b110b..39923698664d 100644 --- a/sw/qa/uitest/writer_tests4/tdf115573.py +++ b/sw/qa/uitest/writer_tests4/tdf115573.py @@ -15,7 +15,7 @@ class tdf115573(UITestCase): tableText.setString( text ) def test_tdf115573_Table_loses_formatting_inserting_row_before(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() #insert table 2x2 with self.ui_test.execute_dialog_through_command(".uno:InsertTable"): @@ -40,7 +40,7 @@ class tdf115573(UITestCase): def test_tdf115573_Table_loses_formatting_inserting_row_after(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() #insert table 2x2 with self.ui_test.execute_dialog_through_command(".uno:InsertTable"): @@ -65,7 +65,7 @@ class tdf115573(UITestCase): def test_tdf115573_Table_loses_formatting_inserting_column_left(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() #insert table 2x2 with self.ui_test.execute_dialog_through_command(".uno:InsertTable"): @@ -85,7 +85,7 @@ class tdf115573(UITestCase): def test_tdf115573_Table_loses_formatting_inserting_column_right(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() #insert table 2x2 with self.ui_test.execute_dialog_through_command(".uno:InsertTable"): diff --git a/sw/qa/uitest/writer_tests4/tdf51352.py b/sw/qa/uitest/writer_tests4/tdf51352.py index c685cc11330d..3f0a88963423 100644 --- a/sw/qa/uitest/writer_tests4/tdf51352.py +++ b/sw/qa/uitest/writer_tests4/tdf51352.py @@ -12,7 +12,7 @@ class tdf51352(UITestCase): def test_convert_nested_table_to_text_tdf51352(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") #1. New a text document diff --git a/sw/qa/uitest/writer_tests4/tdf92611.py b/sw/qa/uitest/writer_tests4/tdf92611.py index 559f9b6ebc41..ecb507a7b528 100644 --- a/sw/qa/uitest/writer_tests4/tdf92611.py +++ b/sw/qa/uitest/writer_tests4/tdf92611.py @@ -10,7 +10,7 @@ class tdf92611(UITestCase): def test_launch_and_close_bibliography(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): self.xUITest.executeCommand(".uno:BibliographyComponent") diff --git a/sw/qa/uitest/writer_tests5/about_test.py b/sw/qa/uitest/writer_tests5/about_test.py index e04eb70ad4ff..b88e07d6cefa 100644 --- a/sw/qa/uitest/writer_tests5/about_test.py +++ b/sw/qa/uitest/writer_tests5/about_test.py @@ -11,7 +11,7 @@ class AboutDlgTest(UITestCase): def test_about_dlg(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:About", close_button="btnClose"): pass diff --git a/sw/qa/uitest/writer_tests5/autocorrectOptions.py b/sw/qa/uitest/writer_tests5/autocorrectOptions.py index 14eaf2c822e6..ce06a3cd9ff7 100644 --- a/sw/qa/uitest/writer_tests5/autocorrectOptions.py +++ b/sw/qa/uitest/writer_tests5/autocorrectOptions.py @@ -12,7 +12,7 @@ from uitest.uihelper.common import select_pos class autocorrectOptions(UITestCase): def test_autocorrect_options_writer(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() with self.ui_test.execute_dialog_through_command(".uno:AutoCorrectDlg", close_button="cancel") as xDialog: diff --git a/sw/qa/uitest/writer_tests5/columns.py b/sw/qa/uitest/writer_tests5/columns.py index 60b5653631fc..ab9f1df0ac39 100644 --- a/sw/qa/uitest/writer_tests5/columns.py +++ b/sw/qa/uitest/writer_tests5/columns.py @@ -12,7 +12,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class columns(UITestCase): def test_columns(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() change_measurement_unit(self, "Centimeter") diff --git a/sw/qa/uitest/writer_tests5/tdf107494.py b/sw/qa/uitest/writer_tests5/tdf107494.py index 402d1b5e068a..f17ad5d3fcd9 100644 --- a/sw/qa/uitest/writer_tests5/tdf107494.py +++ b/sw/qa/uitest/writer_tests5/tdf107494.py @@ -12,7 +12,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf107494(UITestCase): def test_tdf107494_delete_header_with_image(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() #insert header self.assertEqual(document.StyleFamilies.PageStyles.Standard.HeaderIsOn, False) @@ -45,7 +45,7 @@ class tdf107494(UITestCase): def test_tdf107494_delete_footer_with_image(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() #insert footer self.assertEqual(document.StyleFamilies.PageStyles.Standard.FooterIsOn, False) diff --git a/sw/qa/uitest/writer_tests5/tdf122045.py b/sw/qa/uitest/writer_tests5/tdf122045.py index 10f5ef169e67..60e915099e08 100644 --- a/sw/qa/uitest/writer_tests5/tdf122045.py +++ b/sw/qa/uitest/writer_tests5/tdf122045.py @@ -12,7 +12,7 @@ class tdf122045(UITestCase): def test_tdf122045(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() with self.ui_test.execute_dialog_through_command(".uno:PageDialog", close_button="cancel") as xDialog: diff --git a/sw/qa/uitest/writer_tests5/tdf122722.py b/sw/qa/uitest/writer_tests5/tdf122722.py index d3234b0932da..c36c7694cc01 100644 --- a/sw/qa/uitest/writer_tests5/tdf122722.py +++ b/sw/qa/uitest/writer_tests5/tdf122722.py @@ -12,7 +12,7 @@ from uitest.uihelper.common import select_pos class tdf122722(UITestCase): def test_tdf122722_format_character_hidden(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") #1. Start LibreOffice diff --git a/sw/qa/uitest/writer_tests5/tdf123378.py b/sw/qa/uitest/writer_tests5/tdf123378.py index 7ad20fc33523..7a4b5a34a56e 100644 --- a/sw/qa/uitest/writer_tests5/tdf123378.py +++ b/sw/qa/uitest/writer_tests5/tdf123378.py @@ -12,7 +12,7 @@ class tdf123378(UITestCase): def test_tdf123378_print_sets_modified(self): # FIXME unstable test return - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() self.xUITest.executeCommand(".uno:Print") diff --git a/sw/qa/uitest/writer_tests5/tdf123446.py b/sw/qa/uitest/writer_tests5/tdf123446.py index c4792cc9fcfa..dd5023f15c3f 100644 --- a/sw/qa/uitest/writer_tests5/tdf123446.py +++ b/sw/qa/uitest/writer_tests5/tdf123446.py @@ -11,7 +11,7 @@ from uitest.uihelper.common import type_text class tdf123446(UITestCase): def test_tsd123446_undo_redo_ToC_crash(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") #- Add a word to an empty document. diff --git a/sw/qa/uitest/writer_tests5/titlePage.py b/sw/qa/uitest/writer_tests5/titlePage.py index 01617c42ec98..078ee161dce0 100644 --- a/sw/qa/uitest/writer_tests5/titlePage.py +++ b/sw/qa/uitest/writer_tests5/titlePage.py @@ -9,7 +9,7 @@ from uitest.framework import UITestCase class titlePage(UITestCase): def test_title_page(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() #dialog Title Page with self.ui_test.execute_dialog_through_command(".uno:TitlePageDialog") as xDialog: diff --git a/sw/qa/uitest/writer_tests5/xwindow.py b/sw/qa/uitest/writer_tests5/xwindow.py index f02d8c861c05..e31d835edc89 100644 --- a/sw/qa/uitest/writer_tests5/xwindow.py +++ b/sw/qa/uitest/writer_tests5/xwindow.py @@ -76,7 +76,7 @@ class XWindow(UITestCase): def test_listeners(self): global mouseListenerCount - with self.ui_test.create_doc_in_start_center_guarded("writer") as xDoc: + with self.ui_test.create_doc_in_start_center("writer") as xDoc: # create new mouse listener xFrame = xDoc.getCurrentController().getFrame() diff --git a/sw/qa/uitest/writer_tests5/zoom.py b/sw/qa/uitest/writer_tests5/zoom.py index 2fc6d636b2c4..74db72becfdc 100644 --- a/sw/qa/uitest/writer_tests5/zoom.py +++ b/sw/qa/uitest/writer_tests5/zoom.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class writerZoom(UITestCase): def test_zoom_writer(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() #dialog View-Zoom-Zoom with self.ui_test.execute_dialog_through_command(".uno:Zoom") as xDialog: diff --git a/sw/qa/uitest/writer_tests6/infobar.py b/sw/qa/uitest/writer_tests6/infobar.py index f0a03790e710..77c75dde091f 100644 --- a/sw/qa/uitest/writer_tests6/infobar.py +++ b/sw/qa/uitest/writer_tests6/infobar.py @@ -16,7 +16,7 @@ from com.sun.star.container import NoSuchElementException class tdf97926(UITestCase): def test_infobar_add(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: controller = document.getCurrentController() buttons = [StringPair("Close", ".uno:CloseDoc")] controller.appendInfobar( @@ -28,7 +28,7 @@ class tdf97926(UITestCase): "my", "Hello world", "The quick, brown fox jumps over a lazy dog.", InfobarType.INFO, buttons, True) def test_infobar_update(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: controller = document.getCurrentController() buttons = [StringPair("Close", ".uno:CloseDoc")] controller.appendInfobar( @@ -44,7 +44,7 @@ class tdf97926(UITestCase): controller.updateInfobar("my", "", "", 120) def test_infobar_remove(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: controller = document.getCurrentController() buttons = [StringPair("Close", ".uno:CloseDoc")] controller.appendInfobar( diff --git a/sw/qa/uitest/writer_tests6/tdf107847.py b/sw/qa/uitest/writer_tests6/tdf107847.py index 79c4633d113d..5d94bcf4fb12 100644 --- a/sw/qa/uitest/writer_tests6/tdf107847.py +++ b/sw/qa/uitest/writer_tests6/tdf107847.py @@ -11,7 +11,7 @@ from uitest.uihelper.common import select_pos class tdf107847(UITestCase): def test_tdf_107847_macro_tab_crash(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() with self.ui_test.execute_dialog_through_command(".uno:InsertFrame") as xDialog: diff --git a/sw/qa/uitest/writer_tests6/tdf118883.py b/sw/qa/uitest/writer_tests6/tdf118883.py index 675bbe8675f6..5395559220be 100644 --- a/sw/qa/uitest/writer_tests6/tdf118883.py +++ b/sw/qa/uitest/writer_tests6/tdf118883.py @@ -10,7 +10,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class Tdf118883(UITestCase): def test_tdf118883(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as writer_document: + with self.ui_test.create_doc_in_start_center("writer") as writer_document: # Insert shape with Ctrl key xArgs = mkPropertyValues({"KeyModifier": 8192}) diff --git a/sw/qa/uitest/writer_tests6/tdf125104.py b/sw/qa/uitest/writer_tests6/tdf125104.py index fbe9964883a7..a327fd5c4f42 100644 --- a/sw/qa/uitest/writer_tests6/tdf125104.py +++ b/sw/qa/uitest/writer_tests6/tdf125104.py @@ -18,7 +18,7 @@ class tdf125104(UITestCase): select_by_text(comboLayoutFormat, format) def test_tdf125104_pageFormat_numbering(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: # insert page numbers on multiple pages self.xUITest.executeCommand(".uno:InsertPageNumberField") diff --git a/sw/qa/uitest/writer_tests6/tdf126168.py b/sw/qa/uitest/writer_tests6/tdf126168.py index dd7454e16a50..af45ec914927 100644 --- a/sw/qa/uitest/writer_tests6/tdf126168.py +++ b/sw/qa/uitest/writer_tests6/tdf126168.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf126168(UITestCase): def test_tdf126168_frame_undo_redo_crash(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") diff --git a/sw/qa/uitest/writer_tests6/tdf128431.py b/sw/qa/uitest/writer_tests6/tdf128431.py index ddfec671bc3d..af8003ea0e5d 100644 --- a/sw/qa/uitest/writer_tests6/tdf128431.py +++ b/sw/qa/uitest/writer_tests6/tdf128431.py @@ -12,7 +12,7 @@ from uitest.uihelper.common import change_measurement_unit class tdf128431(UITestCase): def test_tdf128431_pageFormat_sync_padding(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): change_measurement_unit(self, "Centimeter") diff --git a/sw/qa/uitest/writer_tests6/tdf131041.py b/sw/qa/uitest/writer_tests6/tdf131041.py index a049ef845797..56a13b81efad 100644 --- a/sw/qa/uitest/writer_tests6/tdf131041.py +++ b/sw/qa/uitest/writer_tests6/tdf131041.py @@ -10,7 +10,7 @@ from uitest.uihelper.common import select_pos, get_state_as_dict class tdf131041(UITestCase): def test_run(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:PageDialog") as xDialog: tabcontrol = xDialog.getChild("tabcontrol") diff --git a/sw/qa/uitest/writer_tests6/tdf44837.py b/sw/qa/uitest/writer_tests6/tdf44837.py index ee2f194f9051..66b3840fd9c9 100644 --- a/sw/qa/uitest/writer_tests6/tdf44837.py +++ b/sw/qa/uitest/writer_tests6/tdf44837.py @@ -12,7 +12,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf44837(UITestCase): def test_tdf448373_Replace_All_clears_current_selection(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") diff --git a/sw/qa/uitest/writer_tests7/tdf109083.py b/sw/qa/uitest/writer_tests7/tdf109083.py index c06f7d16ac33..a39f1955c925 100644 --- a/sw/qa/uitest/writer_tests7/tdf109083.py +++ b/sw/qa/uitest/writer_tests7/tdf109083.py @@ -12,7 +12,7 @@ from uitest.uihelper.common import select_pos #Bug 109083 - Updating table style: changes didn't propagate to other tables when selection was over two columns at the moment of updating class tdf109083(UITestCase): def test_tdf109083(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") #generate two 2x2 tables with the same autoformat table style (Default Table Style) diff --git a/sw/qa/uitest/writer_tests7/tdf115853.py b/sw/qa/uitest/writer_tests7/tdf115853.py index bb86662b1cf5..a1e9d2a7dd34 100644 --- a/sw/qa/uitest/writer_tests7/tdf115853.py +++ b/sw/qa/uitest/writer_tests7/tdf115853.py @@ -15,7 +15,7 @@ from uitest.uihelper.common import select_pos class tdf115853(UITestCase): def test_tdf115853(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:SetDocumentProperties") as xDialog: xTabs = xDialog.getChild("tabcontrol") diff --git a/sw/qa/uitest/writer_tests7/tdf119661.py b/sw/qa/uitest/writer_tests7/tdf119661.py index b756f9fb9b00..da284add867b 100644 --- a/sw/qa/uitest/writer_tests7/tdf119661.py +++ b/sw/qa/uitest/writer_tests7/tdf119661.py @@ -15,7 +15,7 @@ class tdf119661(UITestCase): def test_tdf119661(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): with self.ui_test.execute_dialog_through_command(".uno:InsertGraphic", close_button="") as xOpenDialog: xFileName = xOpenDialog.getChild("file_name") diff --git a/sw/qa/uitest/writer_tests7/tdf133348.py b/sw/qa/uitest/writer_tests7/tdf133348.py index e3fc5764e218..69901577f95f 100644 --- a/sw/qa/uitest/writer_tests7/tdf133348.py +++ b/sw/qa/uitest/writer_tests7/tdf133348.py @@ -10,7 +10,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf133348(UITestCase): def test_tdf133348(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") diff --git a/sw/qa/uitest/writer_tests7/tdf140731.py b/sw/qa/uitest/writer_tests7/tdf140731.py index db1744231c2e..8123d68e8bae 100644 --- a/sw/qa/uitest/writer_tests7/tdf140731.py +++ b/sw/qa/uitest/writer_tests7/tdf140731.py @@ -11,7 +11,7 @@ from uitest.uihelper.common import type_text class tdf140731(UITestCase): def test_tdf140731(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: xWriterDoc = self.xUITest.getTopFocusWindow() xWriterEdit = xWriterDoc.getChild("writer_edit") type_text(xWriterEdit, 'Lorem') diff --git a/sw/qa/uitest/writer_tests7/tdf140863.py b/sw/qa/uitest/writer_tests7/tdf140863.py index 8bcef79fbf49..d30d9253a23f 100644 --- a/sw/qa/uitest/writer_tests7/tdf140863.py +++ b/sw/qa/uitest/writer_tests7/tdf140863.py @@ -12,7 +12,7 @@ class tdf140863(UITestCase): def test_tdf140863(self): - with self.ui_test.create_doc_in_start_center_guarded("writer") as document: + with self.ui_test.create_doc_in_start_center("writer") as document: # Insert one section with self.ui_test.execute_dialog_through_command(".uno:InsertSection"): -- cgit