diff options
269 files changed, 434 insertions, 439 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") diff --git a/sc/qa/uitest/autofilter/autofilter.py b/sc/qa/uitest/autofilter/autofilter.py index 82e45d08254f..129add2703ec 100644 --- a/sc/qa/uitest/autofilter/autofilter.py +++ b/sc/qa/uitest/autofilter/autofilter.py @@ -126,7 +126,7 @@ class AutofilterTest(UITestCase): self.assertFalse(is_row_hidden(doc, 4)) def test_differentSearches(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: calcDoc = self.xUITest.getTopFocusWindow() xGridWindow = calcDoc.getChild("grid_window") @@ -190,7 +190,7 @@ class AutofilterTest(UITestCase): def test_tdf89244(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") @@ -368,7 +368,7 @@ class AutofilterTest(UITestCase): self.assertFalse(is_row_hidden(doc, 7)) def test_tdf142350(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: calcDoc = self.xUITest.getTopFocusWindow() gridwin = calcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/autofilter/autofilterBugs.py b/sc/qa/uitest/autofilter/autofilterBugs.py index 0b058da8c2b2..6b9da46734f7 100644 --- a/sc/qa/uitest/autofilter/autofilterBugs.py +++ b/sc/qa/uitest/autofilter/autofilterBugs.py @@ -23,7 +23,7 @@ class autofilter(UITestCase): self.assertEqual(calc_doc.getPropertyValue("UnnamedDatabaseRanges").getByTable(0).AutoFilter, True) def test_tdf94055(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: calcDoc = self.xUITest.getTopFocusWindow() xGridWindow = calcDoc.getChild("grid_window") enter_text_to_cell(xGridWindow, "A1", "X") diff --git a/sc/qa/uitest/autofilter/tdf117276_autofilter_reset.py b/sc/qa/uitest/autofilter/tdf117276_autofilter_reset.py index 5e2cd379fbd1..c2c94d69df45 100644 --- a/sc/qa/uitest/autofilter/tdf117276_autofilter_reset.py +++ b/sc/qa/uitest/autofilter/tdf117276_autofilter_reset.py @@ -49,7 +49,7 @@ class tdf117276_autofilter_reset(UITestCase): self.assertEqual(2, self.get_values_count_in_AutoFilter(xGridWindow, "1")) def test_run(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: calcDoc = self.xUITest.getTopFocusWindow() xGridWindow = calcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/autofilter/tdf126306.py b/sc/qa/uitest/autofilter/tdf126306.py index e0a895ba5cce..8182ab0371f2 100644 --- a/sc/qa/uitest/autofilter/tdf126306.py +++ b/sc/qa/uitest/autofilter/tdf126306.py @@ -21,7 +21,7 @@ class tdf126306(UITestCase): self.assertEqual(bVisible, value) def test_run(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: calcDoc = self.xUITest.getTopFocusWindow() xGridWin = calcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/autofilter/tdf141559.py b/sc/qa/uitest/autofilter/tdf141559.py index 7c727bd1669a..9cb7c3460d58 100644 --- a/sc/qa/uitest/autofilter/tdf141559.py +++ b/sc/qa/uitest/autofilter/tdf141559.py @@ -15,7 +15,7 @@ from uitest.uihelper.common import get_state_as_dict class tdf141559(UITestCase): def test_tdf141559_clear_filter(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: calcDoc = self.xUITest.getTopFocusWindow() gridwin = calcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/autofilter/tdf141946.py b/sc/qa/uitest/autofilter/tdf141946.py index 7e53dd1c879d..4e0de348ee10 100644 --- a/sc/qa/uitest/autofilter/tdf141946.py +++ b/sc/qa/uitest/autofilter/tdf141946.py @@ -12,7 +12,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf141946(UITestCase): def test_tdf141946_inserted_column(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): calcDoc = self.xUITest.getTopFocusWindow() gridwin = calcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/autofilter/tdf36383.py b/sc/qa/uitest/autofilter/tdf36383.py index a36001cfcab2..df0ce88b84f6 100644 --- a/sc/qa/uitest/autofilter/tdf36383.py +++ b/sc/qa/uitest/autofilter/tdf36383.py @@ -13,7 +13,7 @@ from libreoffice.calc.document import get_row class tdf36383(UITestCase): def test_tdf36383_row_height(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: calcDoc = self.xUITest.getTopFocusWindow() gridwin = calcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/autofilter/tdf46062.py b/sc/qa/uitest/autofilter/tdf46062.py index 6d3f9655991e..f0d16a358c9d 100644 --- a/sc/qa/uitest/autofilter/tdf46062.py +++ b/sc/qa/uitest/autofilter/tdf46062.py @@ -13,7 +13,7 @@ class tdf46062(UITestCase): def test_tdf46062(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): calcDoc = self.xUITest.getTopFocusWindow() gridwin = calcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/autofilter/tdf48025.py b/sc/qa/uitest/autofilter/tdf48025.py index ac90453e8951..f5e3e7836a2a 100644 --- a/sc/qa/uitest/autofilter/tdf48025.py +++ b/sc/qa/uitest/autofilter/tdf48025.py @@ -12,7 +12,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf48025(UITestCase): def test_tdf48025_deleted_columns(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): calcDoc = self.xUITest.getTopFocusWindow() gridwin = calcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/autofilter/tdf68113.py b/sc/qa/uitest/autofilter/tdf68113.py index 6f6b4e97f52b..e6b98db0162d 100644 --- a/sc/qa/uitest/autofilter/tdf68113.py +++ b/sc/qa/uitest/autofilter/tdf68113.py @@ -13,7 +13,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf68113(UITestCase): def test_tdf68113_empty_notempty_button(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): calcDoc = self.xUITest.getTopFocusWindow() xGridWin = calcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests/CalcPasteOnly.py b/sc/qa/uitest/calc_tests/CalcPasteOnly.py index de52826d121e..3930151f2b87 100644 --- a/sc/qa/uitest/calc_tests/CalcPasteOnly.py +++ b/sc/qa/uitest/calc_tests/CalcPasteOnly.py @@ -13,7 +13,7 @@ from uitest.uihelper.calc import enter_text_to_cell class CalcPasteOnly(UITestCase): def test_paste_only(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xTopWindow = self.xUITest.getTopFocusWindow() gridwin = xTopWindow.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests/CellDropDownItems.py b/sc/qa/uitest/calc_tests/CellDropDownItems.py index b81589daccec..bb4e3a568d18 100644 --- a/sc/qa/uitest/calc_tests/CellDropDownItems.py +++ b/sc/qa/uitest/calc_tests/CellDropDownItems.py @@ -13,7 +13,7 @@ class CellDropDownItems(UITestCase): def test_dropdownitems(self): #This is to test Dropdown items in grid window - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests/Comments.py b/sc/qa/uitest/calc_tests/Comments.py index 2bfce36a6ba9..96541353bc50 100644 --- a/sc/qa/uitest/calc_tests/Comments.py +++ b/sc/qa/uitest/calc_tests/Comments.py @@ -10,7 +10,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class Comments(UITestCase): def test_comment(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/sc/qa/uitest/calc_tests/autofill.py b/sc/qa/uitest/calc_tests/autofill.py index c81d1549a8c7..cdd92ea30947 100644 --- a/sc/qa/uitest/calc_tests/autofill.py +++ b/sc/qa/uitest/calc_tests/autofill.py @@ -107,7 +107,7 @@ class CalcAutofill(UITestCase): self.assertEqual(get_cell_by_position(calc_doc, 0, 15, 11).getString(), "10.64.127.7") def test_autofill_with_suffix(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") enter_text_to_cell(gridwin, "A1", "1st") diff --git a/sc/qa/uitest/calc_tests/calcSheetDelete.py b/sc/qa/uitest/calc_tests/calcSheetDelete.py index 3a93f2a69034..42fa040ba87b 100644 --- a/sc/qa/uitest/calc_tests/calcSheetDelete.py +++ b/sc/qa/uitest/calc_tests/calcSheetDelete.py @@ -13,7 +13,7 @@ class calcSheetDelete(UITestCase): def test_tdf114228_insert_and_delete_sheet(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() xGridWindow = xCalcDoc.getChild("grid_window") @@ -40,7 +40,7 @@ class calcSheetDelete(UITestCase): def test_tdf43078_insert_and_delete_sheet_insert_text(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: nrSheets = document.Sheets.getCount() #default number of sheets @@ -69,7 +69,7 @@ class calcSheetDelete(UITestCase): def test_delete_more_sheets_at_once(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() xGridWindow = xCalcDoc.getChild("grid_window") @@ -100,7 +100,7 @@ class calcSheetDelete(UITestCase): def test_tdf105105_delete_lots_of_sheets_at_once(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() xGridWindow = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests/cellBackgroundColorSelector.py b/sc/qa/uitest/calc_tests/cellBackgroundColorSelector.py index 8487f232fe65..c4acf9c74861 100644 --- a/sc/qa/uitest/calc_tests/cellBackgroundColorSelector.py +++ b/sc/qa/uitest/calc_tests/cellBackgroundColorSelector.py @@ -15,7 +15,7 @@ class CalcCellBackgroundColorSelector(UITestCase): def test_color_selector(self): #This is to test color selection - 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") #select cell A1 @@ -139,7 +139,7 @@ class CalcCellBackgroundColorSelector(UITestCase): def test_recent_color_selector(self): #This is to test recent color selection - 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") #select cell A5 diff --git a/sc/qa/uitest/calc_tests/columns.py b/sc/qa/uitest/calc_tests/columns.py index 5687a4887a1e..bae551b4ed27 100644 --- a/sc/qa/uitest/calc_tests/columns.py +++ b/sc/qa/uitest/calc_tests/columns.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class CalcColumns(UITestCase): def test_column_width(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") @@ -45,7 +45,7 @@ class CalcColumns(UITestCase): def test_column_width_two_columns(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") @@ -75,7 +75,7 @@ class CalcColumns(UITestCase): def test_column_width_copy(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") @@ -106,7 +106,7 @@ class CalcColumns(UITestCase): def test_column_hide_show(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") #select A3 @@ -133,7 +133,7 @@ class CalcColumns(UITestCase): def test_column_test_move(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") #select C1 @@ -152,7 +152,7 @@ class CalcColumns(UITestCase): def test_tdf117522_column_width_insert_left(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/sc/qa/uitest/calc_tests/fillRandomNumber.py b/sc/qa/uitest/calc_tests/fillRandomNumber.py index 5388c26aab82..34927bf98099 100644 --- a/sc/qa/uitest/calc_tests/fillRandomNumber.py +++ b/sc/qa/uitest/calc_tests/fillRandomNumber.py @@ -12,7 +12,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues #randomnumbergenerator.ui class fillRandomNumber(UITestCase): def test_fill_random_number(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:A2"})) diff --git a/sc/qa/uitest/calc_tests/formatCells.py b/sc/qa/uitest/calc_tests/formatCells.py index ad0d4faf23b1..de6249afc202 100644 --- a/sc/qa/uitest/calc_tests/formatCells.py +++ b/sc/qa/uitest/calc_tests/formatCells.py @@ -14,7 +14,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class formatCell(UITestCase): def test_format_cell_numbers_tab(self): #numberingformatpage.ui - 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") #select cell A1 @@ -67,7 +67,7 @@ class formatCell(UITestCase): def test_format_cell_font_tab(self): #numberingformatpage.ui - 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") #select cell A1 @@ -117,7 +117,7 @@ class formatCell(UITestCase): def test_format_cell_font_effects_tab(self): #numberingformatpage.ui - 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") #select cell A1 @@ -164,7 +164,7 @@ class formatCell(UITestCase): def test_format_cell_alignment_tab(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") #select cell A1 @@ -213,7 +213,7 @@ class formatCell(UITestCase): def test_format_cell_asian_typography_tab(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") #select cell A1 @@ -236,7 +236,7 @@ class formatCell(UITestCase): def test_minimal_border_width(self): #borderpage.ui, tdf#137790 - 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") @@ -284,7 +284,7 @@ class formatCell(UITestCase): def test_format_cell_borders_tab(self): #borderpage.ui - 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") @@ -343,7 +343,7 @@ class formatCell(UITestCase): def test_format_cell_cell_protection_tab(self): #cellprotectionpage.ui - 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") #select cell A1 @@ -377,7 +377,7 @@ class formatCell(UITestCase): def test_tdf130762(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") #select cell A1 diff --git a/sc/qa/uitest/calc_tests/mergedRowsColumns.py b/sc/qa/uitest/calc_tests/mergedRowsColumns.py index bdb26fb5d6fd..728d948364bc 100644 --- a/sc/qa/uitest/calc_tests/mergedRowsColumns.py +++ b/sc/qa/uitest/calc_tests/mergedRowsColumns.py @@ -160,7 +160,7 @@ class mergedRowsColumns(UITestCase): self.xUITest.executeCommand(".uno:Undo") def test_move_merged_cells(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): xTopWindow = self.xUITest.getTopFocusWindow() gridwin = xTopWindow.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests/printRange.py b/sc/qa/uitest/calc_tests/printRange.py index 551a16997f6e..1082e10de3fc 100644 --- a/sc/qa/uitest/calc_tests/printRange.py +++ b/sc/qa/uitest/calc_tests/printRange.py @@ -10,7 +10,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class printRange(UITestCase): def test_printRange(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") @@ -64,7 +64,7 @@ class printRange(UITestCase): self.ui_test.close_dialog_through_button(xOK) def test_tdf33341_copy_sheet_with_print_range(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/sc/qa/uitest/calc_tests/rows.py b/sc/qa/uitest/calc_tests/rows.py index e5fd0cec18cf..bdc9a1a102d4 100644 --- a/sc/qa/uitest/calc_tests/rows.py +++ b/sc/qa/uitest/calc_tests/rows.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class CalcRows(UITestCase): def test_row_height(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") @@ -45,7 +45,7 @@ class CalcRows(UITestCase): def test_row_height_two_rows(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") @@ -76,7 +76,7 @@ class CalcRows(UITestCase): def test_tdf89140_row_height_copy(self): #Bug 89140 - Calc row paste doesn't keep row height - 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") @@ -107,7 +107,7 @@ class CalcRows(UITestCase): def test_row_hide_show(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") #select A3 @@ -134,7 +134,7 @@ class CalcRows(UITestCase): def test_row_test_move(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") #select A3 @@ -153,7 +153,7 @@ class CalcRows(UITestCase): def test_row_height_insert_below(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/sc/qa/uitest/calc_tests/sheetRename.py b/sc/qa/uitest/calc_tests/sheetRename.py index 3cfa751bad30..cfc8852cb34f 100644 --- a/sc/qa/uitest/calc_tests/sheetRename.py +++ b/sc/qa/uitest/calc_tests/sheetRename.py @@ -10,7 +10,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class sheetRename(UITestCase): def test_sheet_rename(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") with self.ui_test.execute_dialog_through_command(".uno:RenameTable") as xDialog: @@ -23,7 +23,7 @@ class sheetRename(UITestCase): def test_sheet_rename_invalid_sheet_name(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") with self.ui_test.execute_dialog_through_command(".uno:RenameTable", close_button="") as xDialog: diff --git a/sc/qa/uitest/calc_tests/zoom.py b/sc/qa/uitest/calc_tests/zoom.py index 5e1e62c047ae..f19f39796cd6 100644 --- a/sc/qa/uitest/calc_tests/zoom.py +++ b/sc/qa/uitest/calc_tests/zoom.py @@ -11,7 +11,7 @@ from uitest.uihelper.common import get_state_as_dict class calcZoom(UITestCase): def test_zoom_calc(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): MainWindow = self.xUITest.getTopFocusWindow() gridwin = MainWindow.getChild("grid_window") gridwin.executeAction("SELECT", mkPropertyValues({"TABLE": "0"})) diff --git a/sc/qa/uitest/calc_tests2/dataform.py b/sc/qa/uitest/calc_tests2/dataform.py index 3c1b3d699217..264bd9c09502 100644 --- a/sc/qa/uitest/calc_tests2/dataform.py +++ b/sc/qa/uitest/calc_tests2/dataform.py @@ -9,7 +9,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class dataform(UITestCase): def test_dataform(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/sc/qa/uitest/calc_tests2/standardFilter.py b/sc/qa/uitest/calc_tests2/standardFilter.py index 41d481e880c0..008edc521e9b 100644 --- a/sc/qa/uitest/calc_tests2/standardFilter.py +++ b/sc/qa/uitest/calc_tests2/standardFilter.py @@ -133,7 +133,7 @@ class standardFilter(UITestCase): self.assertEqual(get_cell_by_position(calc_doc, 1, 7, 2).getValue(), 4) def test_standard_filter_case_sensitive(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") @@ -179,7 +179,7 @@ class standardFilter(UITestCase): self.ui_test.close_dialog_through_button(xOKBtn) def test_standard_filter_regular_expression(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") @@ -231,7 +231,7 @@ class standardFilter(UITestCase): self.ui_test.close_dialog_through_button(xOKBtn) def test_standard_filter_condition_contains(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") @@ -284,7 +284,7 @@ class standardFilter(UITestCase): #from testcasespecification OOo def test_standard_filter_condition_contains2(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") @@ -347,7 +347,7 @@ class standardFilter(UITestCase): self.ui_test.close_dialog_through_button(xCancelBtn) def test_standard_filter_condition_does_not_contains(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") @@ -411,7 +411,7 @@ class standardFilter(UITestCase): def test_standard_filter_condition_Begins_with(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") @@ -475,7 +475,7 @@ class standardFilter(UITestCase): def test_standard_filter_condition_Does_not_begin_with(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") @@ -539,7 +539,7 @@ class standardFilter(UITestCase): def test_standard_filter_condition_Ends_with(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") @@ -603,7 +603,7 @@ class standardFilter(UITestCase): def test_standard_filter_condition_Does_not_end_with(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/sc/qa/uitest/calc_tests2/tdf104117.py b/sc/qa/uitest/calc_tests2/tdf104117.py index fe4cfe40b056..c58d68bd7432 100644 --- a/sc/qa/uitest/calc_tests2/tdf104117.py +++ b/sc/qa/uitest/calc_tests2/tdf104117.py @@ -12,7 +12,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues #Bug 104117 - Crash in Calc when selecting "Uniform Integer" with an max value "100000000000000" in "Random Number Generator class tdf104117(UITestCase): def test_tdf104117(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:A2"})) diff --git a/sc/qa/uitest/calc_tests2/tdf117367.py b/sc/qa/uitest/calc_tests2/tdf117367.py index 7dec2a2005c8..38c2a45be599 100644 --- a/sc/qa/uitest/calc_tests2/tdf117367.py +++ b/sc/qa/uitest/calc_tests2/tdf117367.py @@ -12,7 +12,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf117367(UITestCase): def test_tdf117367_merge_cells_radio_buttons(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/sc/qa/uitest/calc_tests2/tdf120174.py b/sc/qa/uitest/calc_tests2/tdf120174.py index 31e2556141a8..0a44022bb9e0 100644 --- a/sc/qa/uitest/calc_tests2/tdf120174.py +++ b/sc/qa/uitest/calc_tests2/tdf120174.py @@ -11,7 +11,7 @@ from uitest.uihelper.calc import enter_text_to_cell class tdf120174(UITestCase): def test_tdf120174(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") enter_text_to_cell(gridwin, "A1", "121") diff --git a/sc/qa/uitest/calc_tests2/tdf126577.py b/sc/qa/uitest/calc_tests2/tdf126577.py index a579b7b24930..527bc771f067 100644 --- a/sc/qa/uitest/calc_tests2/tdf126577.py +++ b/sc/qa/uitest/calc_tests2/tdf126577.py @@ -12,7 +12,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf126577(UITestCase): def test_tdf126577(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests2/tdf46138.py b/sc/qa/uitest/calc_tests2/tdf46138.py index eeb9ae33b4e2..0e0e155a99a9 100644 --- a/sc/qa/uitest/calc_tests2/tdf46138.py +++ b/sc/qa/uitest/calc_tests2/tdf46138.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf46138(UITestCase): def test_tdf46138(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #Choose a column, diff --git a/sc/qa/uitest/calc_tests2/tdf51700.py b/sc/qa/uitest/calc_tests2/tdf51700.py index fda6d4eda5fb..c59bcb457fa4 100644 --- a/sc/qa/uitest/calc_tests2/tdf51700.py +++ b/sc/qa/uitest/calc_tests2/tdf51700.py @@ -13,7 +13,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf51700(UITestCase): def test_tdf51700_text_to_columns(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests3/clearCells.py b/sc/qa/uitest/calc_tests3/clearCells.py index ce5a8b984d8e..179111eb6469 100644 --- a/sc/qa/uitest/calc_tests3/clearCells.py +++ b/sc/qa/uitest/calc_tests3/clearCells.py @@ -14,7 +14,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues #+ Bug 101904 - Delete Contents dialog -- won't delete cell content "Date & time" class clearCells(UITestCase): def test_clear_cells_text(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") enter_text_to_cell(gridwin, "A1", "aa") @@ -54,7 +54,7 @@ class clearCells(UITestCase): def test_clear_cells_date_tdf101904(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") enter_text_to_cell(gridwin, "A1", "01/01/2000") @@ -94,7 +94,7 @@ class clearCells(UITestCase): def test_clear_cells_number(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") enter_text_to_cell(gridwin, "A1", "aa") @@ -133,7 +133,7 @@ class clearCells(UITestCase): self.assertEqual(get_cell_by_position(document, 0, 0, 1).getValue() , 0) def test_clear_cells_formulas(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") enter_text_to_cell(gridwin, "A1", "1") @@ -173,7 +173,7 @@ class clearCells(UITestCase): def test_clear_cells_formats(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") enter_text_to_cell(gridwin, "A1", "aa") @@ -223,7 +223,7 @@ class clearCells(UITestCase): def test_clear_cells_all(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") enter_text_to_cell(gridwin, "A1", "aa") @@ -250,7 +250,7 @@ class clearCells(UITestCase): def test_cancel_clear_cells_all(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") enter_text_to_cell(gridwin, "A1", "aa") diff --git a/sc/qa/uitest/calc_tests3/insertQrCodeGen.py b/sc/qa/uitest/calc_tests3/insertQrCodeGen.py index ea5837199218..2f87eedec717 100644 --- a/sc/qa/uitest/calc_tests3/insertQrCodeGen.py +++ b/sc/qa/uitest/calc_tests3/insertQrCodeGen.py @@ -11,7 +11,7 @@ from com.sun.star.lang import IndexOutOfBoundsException class insertQrCode(UITestCase): def test_insert_qr_code_gen(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") @@ -44,7 +44,7 @@ class insertQrCode(UITestCase): def test_insert_qr_code_gen2(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests3/tdf69450.py b/sc/qa/uitest/calc_tests3/tdf69450.py index 92c50e594dcd..01148f39655b 100644 --- a/sc/qa/uitest/calc_tests3/tdf69450.py +++ b/sc/qa/uitest/calc_tests3/tdf69450.py @@ -12,7 +12,7 @@ from libreoffice.calc.document import get_cell_by_position class tdf69450(UITestCase): def test_tdf69450(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests3/tdf73006.py b/sc/qa/uitest/calc_tests3/tdf73006.py index 33df2d49f3ef..41708cd1d223 100644 --- a/sc/qa/uitest/calc_tests3/tdf73006.py +++ b/sc/qa/uitest/calc_tests3/tdf73006.py @@ -13,7 +13,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf73006(UITestCase): def test_tdf73006_text_to_columns(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests3/tdf79983.py b/sc/qa/uitest/calc_tests3/tdf79983.py index 28a864ac7ad8..fbb5e98ecffc 100644 --- a/sc/qa/uitest/calc_tests3/tdf79983.py +++ b/sc/qa/uitest/calc_tests3/tdf79983.py @@ -13,7 +13,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf79983(UITestCase): def test_tdf79983_sort_list_case_sensitive(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests3/tdf80693.py b/sc/qa/uitest/calc_tests3/tdf80693.py index bf8b08d76688..6345c53f91a8 100644 --- a/sc/qa/uitest/calc_tests3/tdf80693.py +++ b/sc/qa/uitest/calc_tests3/tdf80693.py @@ -12,7 +12,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues #Bug 80693 - EDITING: fill cell with random numbers with min = max class tdf80693(UITestCase): def test_tdf80693_random_numbers_min_max(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:A2"})) diff --git a/sc/qa/uitest/calc_tests3/tdf82398.py b/sc/qa/uitest/calc_tests3/tdf82398.py index 677b137ace13..3bdd4da5a4d0 100644 --- a/sc/qa/uitest/calc_tests3/tdf82398.py +++ b/sc/qa/uitest/calc_tests3/tdf82398.py @@ -13,7 +13,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf82398(UITestCase): def test_tdf82398_text_to_columns(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests4/tdf88999.py b/sc/qa/uitest/calc_tests4/tdf88999.py index 7686ef9e1270..880fbfeb6c5c 100644 --- a/sc/qa/uitest/calc_tests4/tdf88999.py +++ b/sc/qa/uitest/calc_tests4/tdf88999.py @@ -14,7 +14,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf88999(UITestCase): def test_tdf88999_scientific_format_decimal_value(self): #numberingformatpage.ui - 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") enter_text_to_cell(gridwin, "A1", "1e-2") diff --git a/sc/qa/uitest/calc_tests4/tdf89907.py b/sc/qa/uitest/calc_tests4/tdf89907.py index 18e532432274..b046b758a9d8 100644 --- a/sc/qa/uitest/calc_tests4/tdf89907.py +++ b/sc/qa/uitest/calc_tests4/tdf89907.py @@ -13,7 +13,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf89907(UITestCase): def test_tdf89907_text_to_columns(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests4/tdf92423.py b/sc/qa/uitest/calc_tests4/tdf92423.py index e20c4973af28..be370ca37d90 100644 --- a/sc/qa/uitest/calc_tests4/tdf92423.py +++ b/sc/qa/uitest/calc_tests4/tdf92423.py @@ -13,7 +13,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf92423(UITestCase): def test_tdf92423_text_to_columns(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests4/tdf94208.py b/sc/qa/uitest/calc_tests4/tdf94208.py index cdb359fdf0bd..ecf5f1aecc7e 100644 --- a/sc/qa/uitest/calc_tests4/tdf94208.py +++ b/sc/qa/uitest/calc_tests4/tdf94208.py @@ -13,7 +13,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf94208(UITestCase): def test_tdf94208_Undo_fill_down_rows_selected(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests4/trackedChanges.py b/sc/qa/uitest/calc_tests4/trackedChanges.py index 4038d4afd279..e4f06577aa9c 100644 --- a/sc/qa/uitest/calc_tests4/trackedChanges.py +++ b/sc/qa/uitest/calc_tests4/trackedChanges.py @@ -40,7 +40,7 @@ class CalcTrackedChanges(UITestCase): xCancBtn.executeAction("CLICK", tuple()) def test_tdf66263_Protect_Records(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: self.ui_test.wait_until_child_is_available("grid_window") xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") @@ -59,7 +59,7 @@ class CalcTrackedChanges(UITestCase): def test_tracked_changes_accept(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: self.ui_test.wait_until_child_is_available("grid_window") xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") @@ -112,7 +112,7 @@ class CalcTrackedChanges(UITestCase): def test_tracked_changes_acceptall(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: self.ui_test.wait_until_child_is_available("grid_window") xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") @@ -157,7 +157,7 @@ class CalcTrackedChanges(UITestCase): def test_tracked_changes_reject(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: self.ui_test.wait_until_child_is_available("grid_window") xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") @@ -222,7 +222,7 @@ class CalcTrackedChanges(UITestCase): def test_tracked_changes_rejectall(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: self.ui_test.wait_until_child_is_available("grid_window") xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests6/autoFormat.py b/sc/qa/uitest/calc_tests6/autoFormat.py index 17fb31049720..446b8076ca90 100644 --- a/sc/qa/uitest/calc_tests6/autoFormat.py +++ b/sc/qa/uitest/calc_tests6/autoFormat.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class autoFormat(UITestCase): def test_autoformat_styles(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") #select A1:C5 diff --git a/sc/qa/uitest/calc_tests6/autocorrectOptions.py b/sc/qa/uitest/calc_tests6/autocorrectOptions.py index f79a07a78906..965b538f2002 100644 --- a/sc/qa/uitest/calc_tests6/autocorrectOptions.py +++ b/sc/qa/uitest/calc_tests6/autocorrectOptions.py @@ -12,7 +12,7 @@ from uitest.uihelper.common import select_pos class autocorrectOptions(UITestCase): def test_autocorrect_options_calc(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/sc/qa/uitest/calc_tests6/hideShowSheet.py b/sc/qa/uitest/calc_tests6/hideShowSheet.py index ec517fd3e5f2..d1c06ee7ad13 100644 --- a/sc/qa/uitest/calc_tests6/hideShowSheet.py +++ b/sc/qa/uitest/calc_tests6/hideShowSheet.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class hideShowSheet(UITestCase): def test_hide_show_sheet(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") #insert sheet diff --git a/sc/qa/uitest/calc_tests6/moveCopySheet.py b/sc/qa/uitest/calc_tests6/moveCopySheet.py index 27f293755b22..8b9d4ad968cf 100644 --- a/sc/qa/uitest/calc_tests6/moveCopySheet.py +++ b/sc/qa/uitest/calc_tests6/moveCopySheet.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class moveCopySheet(UITestCase): def test_copy_move_sheet(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #default - 1 sheet; select the sheet (is selected), dialog move/copy sheet diff --git a/sc/qa/uitest/calc_tests6/multipleOperations.py b/sc/qa/uitest/calc_tests6/multipleOperations.py index 83868c824aa5..d649bb8dea9d 100644 --- a/sc/qa/uitest/calc_tests6/multipleOperations.py +++ b/sc/qa/uitest/calc_tests6/multipleOperations.py @@ -14,7 +14,7 @@ from uitest.uihelper.calc import enter_text_to_cell class multipleOperations(UITestCase): def test_multiple_operations_one_variable(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() xGridWindow = xCalcDoc.getChild("grid_window") @@ -60,7 +60,7 @@ class multipleOperations(UITestCase): self.assertEqual(get_cell_by_position(document, 0, 4, 10).getValue(), 30000) def test_multiple_operations_several_formulas(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() xGridWindow = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests6/scenarios.py b/sc/qa/uitest/calc_tests6/scenarios.py index 9063762a629b..3ac2308f2ec0 100644 --- a/sc/qa/uitest/calc_tests6/scenarios.py +++ b/sc/qa/uitest/calc_tests6/scenarios.py @@ -13,7 +13,7 @@ from uitest.uihelper.calc import enter_text_to_cell class scenarios(UITestCase): def test_scenarios(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() xGridWindow = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests6/shareSpreadsheet.py b/sc/qa/uitest/calc_tests6/shareSpreadsheet.py index 21f2443db596..0691f3277fb2 100644 --- a/sc/qa/uitest/calc_tests6/shareSpreadsheet.py +++ b/sc/qa/uitest/calc_tests6/shareSpreadsheet.py @@ -12,7 +12,7 @@ from uitest.uihelper.common import get_state_as_dict class shareSpreadsheet(UITestCase): def test_share_spreadsheet(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() xGridWindow = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests6/tdf104378.py b/sc/qa/uitest/calc_tests6/tdf104378.py index 99fb75ee50db..55d83707c8f9 100644 --- a/sc/qa/uitest/calc_tests6/tdf104378.py +++ b/sc/qa/uitest/calc_tests6/tdf104378.py @@ -11,7 +11,7 @@ from libreoffice.calc.document import get_cell_by_position class tdf104378(UITestCase): def test_tdf104378(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests6/tdf116996.py b/sc/qa/uitest/calc_tests6/tdf116996.py index 6f28b7d9bb72..6b972f2eb37c 100644 --- a/sc/qa/uitest/calc_tests6/tdf116996.py +++ b/sc/qa/uitest/calc_tests6/tdf116996.py @@ -11,7 +11,7 @@ from uitest.uihelper.common import get_state_as_dict class tdf116996(UITestCase): def test_tdf116996_enable_experimental_feature(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/sc/qa/uitest/calc_tests6/tdf121263.py b/sc/qa/uitest/calc_tests6/tdf121263.py index b8db6a19811b..999880dddaeb 100644 --- a/sc/qa/uitest/calc_tests6/tdf121263.py +++ b/sc/qa/uitest/calc_tests6/tdf121263.py @@ -13,7 +13,7 @@ from uitest.uihelper.common import get_state_as_dict class tdf121263(UITestCase): def test_tdf121263_hide_more_sheets(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): xTopWindow = self.xUITest.getTopFocusWindow() gridwin = xTopWindow.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests6/tdf91726.py b/sc/qa/uitest/calc_tests6/tdf91726.py index a688751f6e0b..5529fcfb72de 100644 --- a/sc/qa/uitest/calc_tests6/tdf91726.py +++ b/sc/qa/uitest/calc_tests6/tdf91726.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf91726(UITestCase): def test_tdf91726_new_style(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") #select A1:E9 diff --git a/sc/qa/uitest/calc_tests7/tdf106667.py b/sc/qa/uitest/calc_tests7/tdf106667.py index 7792969097e6..2459edcf166e 100644 --- a/sc/qa/uitest/calc_tests7/tdf106667.py +++ b/sc/qa/uitest/calc_tests7/tdf106667.py @@ -13,7 +13,7 @@ from libreoffice.calc.document import get_cell_by_position class tdf106667(UITestCase): def test_tdf106667_about_dlg_all(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests7/tdf117987.py b/sc/qa/uitest/calc_tests7/tdf117987.py index 9ad154275f1b..12d9b19b4df6 100644 --- a/sc/qa/uitest/calc_tests7/tdf117987.py +++ b/sc/qa/uitest/calc_tests7/tdf117987.py @@ -10,7 +10,7 @@ from libreoffice.calc.document import get_cell_by_position class tdf117987(UITestCase): def test_highlight_cell_after_moving_cursor(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests7/tdf123122.py b/sc/qa/uitest/calc_tests7/tdf123122.py index 858ffed472c8..f3c698892aa0 100644 --- a/sc/qa/uitest/calc_tests7/tdf123122.py +++ b/sc/qa/uitest/calc_tests7/tdf123122.py @@ -14,7 +14,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf123122(UITestCase): def test_tdf123122_format_cell_datetime(self): #numberingformatpage.ui - 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") #select cell A1 diff --git a/sc/qa/uitest/calc_tests7/tdf125030.py b/sc/qa/uitest/calc_tests7/tdf125030.py index 485614050127..2876aebc170e 100644 --- a/sc/qa/uitest/calc_tests7/tdf125030.py +++ b/sc/qa/uitest/calc_tests7/tdf125030.py @@ -13,7 +13,7 @@ from uitest.uihelper.calc import enter_text_to_cell class tdf125030(UITestCase): def test_tdf125030_repeat_crash(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #enter data diff --git a/sc/qa/uitest/calc_tests7/tdf45020.py b/sc/qa/uitest/calc_tests7/tdf45020.py index 08b6de43f4a2..03497cd6d86d 100644 --- a/sc/qa/uitest/calc_tests7/tdf45020.py +++ b/sc/qa/uitest/calc_tests7/tdf45020.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf45020(UITestCase): def test_tdf45020_hide_rows_select(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") #in cell A1-A4: apple pear melon mango diff --git a/sc/qa/uitest/calc_tests8/navigator.py b/sc/qa/uitest/calc_tests8/navigator.py index 630c1cda7ba1..aa501a514030 100644 --- a/sc/qa/uitest/calc_tests8/navigator.py +++ b/sc/qa/uitest/calc_tests8/navigator.py @@ -111,7 +111,7 @@ class navigator(UITestCase): def test_tdf134390(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() xGridWin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests8/tdf118308.py b/sc/qa/uitest/calc_tests8/tdf118308.py index 852bb474a381..8ae0f2d6f5d0 100644 --- a/sc/qa/uitest/calc_tests8/tdf118308.py +++ b/sc/qa/uitest/calc_tests8/tdf118308.py @@ -13,7 +13,7 @@ from libreoffice.calc.document import get_cell_by_position class tdf118308(UITestCase): def test_tdf118308(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests8/tdf125051.py b/sc/qa/uitest/calc_tests8/tdf125051.py index 205038008db7..c8ce5a7252ac 100644 --- a/sc/qa/uitest/calc_tests8/tdf125051.py +++ b/sc/qa/uitest/calc_tests8/tdf125051.py @@ -15,7 +15,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf125051(UITestCase): def test_tdf125051_crash_spelling_dialog(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") enter_text_to_cell(gridwin, "A1", "text") diff --git a/sc/qa/uitest/calc_tests8/tdf126248.py b/sc/qa/uitest/calc_tests8/tdf126248.py index f314e1a7d64c..53bef16a1c52 100644 --- a/sc/qa/uitest/calc_tests8/tdf126248.py +++ b/sc/qa/uitest/calc_tests8/tdf126248.py @@ -48,7 +48,7 @@ class tdf126248(UITestCase): def test_tdf126248(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.changeLocalSetting("Chinese (traditional)") diff --git a/sc/qa/uitest/calc_tests8/tdf137726.py b/sc/qa/uitest/calc_tests8/tdf137726.py index dddc0d0799ca..7adbae5e4b81 100644 --- a/sc/qa/uitest/calc_tests8/tdf137726.py +++ b/sc/qa/uitest/calc_tests8/tdf137726.py @@ -9,7 +9,7 @@ from uitest.framework import UITestCase class tdf137726(UITestCase): def test_tdf137726(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/sc/qa/uitest/calc_tests9/tdf117879.py b/sc/qa/uitest/calc_tests9/tdf117879.py index 2245ddcdf2a0..93cb458501a8 100644 --- a/sc/qa/uitest/calc_tests9/tdf117879.py +++ b/sc/qa/uitest/calc_tests9/tdf117879.py @@ -13,7 +13,7 @@ class tdf117879(UITestCase): def test_tdf117879(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: calcDoc = self.xUITest.getTopFocusWindow() gridwin = calcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests9/tdf121949.py b/sc/qa/uitest/calc_tests9/tdf121949.py index 3d59a0a00498..ca4064d7ef39 100644 --- a/sc/qa/uitest/calc_tests9/tdf121949.py +++ b/sc/qa/uitest/calc_tests9/tdf121949.py @@ -10,7 +10,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf121949 (UITestCase): def test_tdf121949_copy_block_with_single_cell_not_included(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/sc/qa/uitest/calc_tests9/tdf133629.py b/sc/qa/uitest/calc_tests9/tdf133629.py index 7d1bffbc6721..72a0cc881831 100644 --- a/sc/qa/uitest/calc_tests9/tdf133629.py +++ b/sc/qa/uitest/calc_tests9/tdf133629.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf133629(UITestCase): def test_tdf133629(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/calc_tests9/tdf141244.py b/sc/qa/uitest/calc_tests9/tdf141244.py index 89d21d1c5c58..78845817b9f8 100644 --- a/sc/qa/uitest/calc_tests9/tdf141244.py +++ b/sc/qa/uitest/calc_tests9/tdf141244.py @@ -13,7 +13,7 @@ class tdf141244(UITestCase): def test_tdf141244(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): calcDoc = self.xUITest.getTopFocusWindow() gridwin = calcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/chart/create_chart.py b/sc/qa/uitest/chart/create_chart.py index 26d1de5155ee..678aca31e564 100644 --- a/sc/qa/uitest/chart/create_chart.py +++ b/sc/qa/uitest/chart/create_chart.py @@ -30,7 +30,7 @@ class CalcChartUIDemo(UITestCase): def test_cancel_immediately(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.fill_spreadsheet() @@ -40,7 +40,7 @@ class CalcChartUIDemo(UITestCase): def test_create_from_first_page(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.fill_spreadsheet() @@ -50,7 +50,7 @@ class CalcChartUIDemo(UITestCase): def test_create_from_second_page(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.fill_spreadsheet() @@ -66,7 +66,7 @@ class CalcChartUIDemo(UITestCase): def test_deselect_chart(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.fill_spreadsheet() @@ -83,7 +83,7 @@ class CalcChartUIDemo(UITestCase): def test_activate_chart(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.fill_spreadsheet() @@ -103,7 +103,7 @@ class CalcChartUIDemo(UITestCase): def select_chart_element(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.fill_spreadsheet() diff --git a/sc/qa/uitest/chart/edit_chart.py b/sc/qa/uitest/chart/edit_chart.py index b16e2ab57963..1f599172692d 100644 --- a/sc/qa/uitest/chart/edit_chart.py +++ b/sc/qa/uitest/chart/edit_chart.py @@ -29,7 +29,7 @@ class CalcChartEditUIDemo(UITestCase): def test_select_secondary_axis(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.fill_spreadsheet() diff --git a/sc/qa/uitest/chart/tdf124295.py b/sc/qa/uitest/chart/tdf124295.py index 24bbd14ee52e..f48084611b14 100644 --- a/sc/qa/uitest/chart/tdf124295.py +++ b/sc/qa/uitest/chart/tdf124295.py @@ -15,7 +15,7 @@ class tdf124295(UITestCase): def test_tdf124295(self): # Open spreadsheet and insert chart - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): with self.ui_test.execute_dialog_through_command(".uno:InsertObjectChart", close_button="cancel") as xChartDlg: # Click 3D look check button diff --git a/sc/qa/uitest/chart/tdf131715.py b/sc/qa/uitest/chart/tdf131715.py index 9ad4c017e39f..0ac70d44a568 100644 --- a/sc/qa/uitest/chart/tdf131715.py +++ b/sc/qa/uitest/chart/tdf131715.py @@ -10,7 +10,7 @@ from uitest.uihelper.common import select_pos class tdf131715(UITestCase): def test_tdf131715(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): with self.ui_test.execute_dialog_through_command(".uno:InsertObjectChart", close_button="finish") as xChartDlg: xWizard = xChartDlg.getChild('Wizard') diff --git a/sc/qa/uitest/chart/tdf46885.py b/sc/qa/uitest/chart/tdf46885.py index 7d5b4e4bd6d7..e82c3fe1a8eb 100644 --- a/sc/qa/uitest/chart/tdf46885.py +++ b/sc/qa/uitest/chart/tdf46885.py @@ -15,7 +15,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf46885(UITestCase): def test_tdf46885_crash_chart_no_cell_selected_nextButton(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") enter_text_to_cell(gridwin, "A10", "col1") @@ -29,7 +29,7 @@ class tdf46885(UITestCase): def test_tdf46885_crash_chart_multiple_empty_cells_selected(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") enter_text_to_cell(gridwin, "A10", "col1") diff --git a/sc/qa/uitest/conditional_format/tdf105351.py b/sc/qa/uitest/conditional_format/tdf105351.py index dd1ac8e0e18a..240fd14f79a4 100644 --- a/sc/qa/uitest/conditional_format/tdf105351.py +++ b/sc/qa/uitest/conditional_format/tdf105351.py @@ -15,7 +15,7 @@ from uitest.debug import sleep #Bug 105351 - FORMATTING: Unable to change Data Bar conditional formatting class tdf105351(UITestCase): def test_tdf105351_cond_format_data_bar(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") #2. Set the value of cell A1 to 5 diff --git a/sc/qa/uitest/conditional_format/tdf105411.py b/sc/qa/uitest/conditional_format/tdf105411.py index 35a15ef3f19f..e7f7dd745fdf 100644 --- a/sc/qa/uitest/conditional_format/tdf105411.py +++ b/sc/qa/uitest/conditional_format/tdf105411.py @@ -11,7 +11,7 @@ class tdf105411(UITestCase): def test_delete_conditional_format(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.ui_test.execute_modeless_dialog_through_command(".uno:ConditionalFormatDialog") diff --git a/sc/qa/uitest/conditional_format/tdf105466.py b/sc/qa/uitest/conditional_format/tdf105466.py index c087f925e3e3..5214e3f7d21f 100644 --- a/sc/qa/uitest/conditional_format/tdf105466.py +++ b/sc/qa/uitest/conditional_format/tdf105466.py @@ -15,7 +15,7 @@ class tdf105466(UITestCase): @unittest.skip("issue with floating windows") def test_changing_conditional_format(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.ui_test.execute_modeless_dialog_through_command(".uno:ConditionalFormatDialog") diff --git a/sc/qa/uitest/function_wizard/function_wizard.py b/sc/qa/uitest/function_wizard/function_wizard.py index 0e80e6729f33..f2356e9ba4fc 100644 --- a/sc/qa/uitest/function_wizard/function_wizard.py +++ b/sc/qa/uitest/function_wizard/function_wizard.py @@ -12,7 +12,7 @@ from uitest.framework import UITestCase class FunctionWizardTest(UITestCase): # tdf#98427 def test_open_function_wizard(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.ui_test.execute_modeless_dialog_through_command(".uno:FunctionDialog") diff --git a/sc/qa/uitest/function_wizard/tdf132173.py b/sc/qa/uitest/function_wizard/tdf132173.py index 0e372536206f..cad38a306d64 100644 --- a/sc/qa/uitest/function_wizard/tdf132173.py +++ b/sc/qa/uitest/function_wizard/tdf132173.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf132173(UITestCase): def test_tdf132173(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: self.ui_test.execute_modeless_dialog_through_command(".uno:FunctionDialog") xDialog = self.xUITest.getTopFocusWindow() diff --git a/sc/qa/uitest/hide_cols/tdf95306.py b/sc/qa/uitest/hide_cols/tdf95306.py index c53dd52b66c6..f82e8d38dce1 100644 --- a/sc/qa/uitest/hide_cols/tdf95306.py +++ b/sc/qa/uitest/hide_cols/tdf95306.py @@ -20,7 +20,7 @@ def get_column_hidden(doc, index): class HideDisjointColumns(UITestCase): def test_hide_columns(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as doc: + with self.ui_test.create_doc_in_start_center("calc") as doc: xTopWindow = self.xUITest.getTopFocusWindow() gridwin = xTopWindow.getChild("grid_window") diff --git a/sc/qa/uitest/inputLine/tdf54197.py b/sc/qa/uitest/inputLine/tdf54197.py index 6ad8140b1f1e..2674cd70dbf9 100644 --- a/sc/qa/uitest/inputLine/tdf54197.py +++ b/sc/qa/uitest/inputLine/tdf54197.py @@ -18,7 +18,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf54197(UITestCase): def test_tdf54197_CTRL_D_input_line_change(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") # 1. go to cell A1 enter any text diff --git a/sc/qa/uitest/inputLine/tdf67346.py b/sc/qa/uitest/inputLine/tdf67346.py index 0af6e2f13204..26ef5e9770cb 100644 --- a/sc/qa/uitest/inputLine/tdf67346.py +++ b/sc/qa/uitest/inputLine/tdf67346.py @@ -18,7 +18,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf67346(UITestCase): def test_tdf67346_undo_paste_text_input_line(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") # type 'Apple' in A1 diff --git a/sc/qa/uitest/key_f4/f4.py b/sc/qa/uitest/key_f4/f4.py index 755c966daa57..9c0e7484800d 100644 --- a/sc/qa/uitest/key_f4/f4.py +++ b/sc/qa/uitest/key_f4/f4.py @@ -15,7 +15,7 @@ from uitest.uihelper.calc import enter_text_to_cell class keyF4(UITestCase): def test_f4(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #enter data @@ -77,7 +77,7 @@ class keyF4(UITestCase): def test_tdf39650_F4_R1C1(self): #Bug 39650 - Shift+F4 conversion from relative to absolute does not work for R1C1 syntax - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #* Tools --> Options --> Calc --> Formula --> Syntax = Excel R1C1 diff --git a/sc/qa/uitest/manual_tests/calc.py b/sc/qa/uitest/manual_tests/calc.py index bba77075f5bf..68d1a7a82aa5 100644 --- a/sc/qa/uitest/manual_tests/calc.py +++ b/sc/qa/uitest/manual_tests/calc.py @@ -16,7 +16,7 @@ class ManualCalcTests(UITestCase): # http://manual-test.libreoffice.org/manage/case/189/ def test_define_database_range(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: # Select range A1:D10 xGridWin = self.xUITest.getTopFocusWindow().getChild("grid_window") @@ -51,7 +51,7 @@ class ManualCalcTests(UITestCase): # http://manual-test.libreoffice.org/manage/case/190/ def test_sort_data(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: # Insert data xGridWin = self.xUITest.getTopFocusWindow().getChild("grid_window") @@ -87,7 +87,7 @@ class ManualCalcTests(UITestCase): # http://manual-test.libreoffice.org/manage/case/191/ def test_validation(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xGridWin = self.xUITest.getTopFocusWindow().getChild("grid_window") xGridWin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:C10"})) @@ -117,7 +117,7 @@ class ManualCalcTests(UITestCase): # http://manual-test.libreoffice.org/manage/case/187/ def test_transpose(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xGridWin = self.xUITest.getTopFocusWindow().getChild("grid_window") enter_text_to_cell(xGridWin, "B3", "abcd") @@ -165,7 +165,7 @@ class ManualCalcTests(UITestCase): # http://manual-test.libreoffice.org/manage/case/143/ def test_random_numbers(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xGridWin = self.xUITest.getTopFocusWindow().getChild("grid_window") xGridWin.executeAction("SELECT", mkPropertyValues({"RANGE": "A2:A10"})) diff --git a/sc/qa/uitest/manual_tests/more_calc.py b/sc/qa/uitest/manual_tests/more_calc.py index 71d913c68f37..c4504492fe6f 100644 --- a/sc/qa/uitest/manual_tests/more_calc.py +++ b/sc/qa/uitest/manual_tests/more_calc.py @@ -21,7 +21,7 @@ class ManualCalcTests(UITestCase): # This test is to check that paste special combined with some options and link is ok. # Refers to tdf#84810 - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: # Write text to cell A1 xGridWin = self.xUITest.getTopFocusWindow().getChild("grid_window") diff --git a/sc/qa/uitest/options/tdf122977.py b/sc/qa/uitest/options/tdf122977.py index bcd97c4d3fe3..061054f00dbf 100644 --- a/sc/qa/uitest/options/tdf122977.py +++ b/sc/qa/uitest/options/tdf122977.py @@ -15,7 +15,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class chartDefaultColors(UITestCase): def test_tdf122977_crash_chart_default_colors_options(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/sc/qa/uitest/protect/protectSheet.py b/sc/qa/uitest/protect/protectSheet.py index 9dc9e2accaa6..f6fbf201e0c2 100644 --- a/sc/qa/uitest/protect/protectSheet.py +++ b/sc/qa/uitest/protect/protectSheet.py @@ -16,7 +16,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class protectSheet(UITestCase): def test_protect_sheet(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #enter password - lock diff --git a/sc/qa/uitest/protect/protectSpreadsheet.py b/sc/qa/uitest/protect/protectSpreadsheet.py index 71fd6fa94da9..8c0d2f28ec4a 100644 --- a/sc/qa/uitest/protect/protectSpreadsheet.py +++ b/sc/qa/uitest/protect/protectSpreadsheet.py @@ -16,7 +16,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class protectSpreadsheet(UITestCase): def test_protect_spreadsheet(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") #enter password diff --git a/sc/qa/uitest/range_name/create_range_name.py b/sc/qa/uitest/range_name/create_range_name.py index 14b4a1db3e43..8a7adfd6d236 100644 --- a/sc/qa/uitest/range_name/create_range_name.py +++ b/sc/qa/uitest/range_name/create_range_name.py @@ -17,7 +17,7 @@ class CreateRangeNameTest(UITestCase): def test_create_range_name(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: calcDoc = self.xUITest.getTopFocusWindow() xPosWindow = calcDoc.getChild('pos_window') @@ -38,7 +38,7 @@ class CreateRangeNameTest(UITestCase): def test_create_range_name_from_ui(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: calcDoc = self.xUITest.getTopFocusWindow() gridwin = calcDoc.getChild("grid_window") @@ -87,7 +87,7 @@ class CreateRangeNameTest(UITestCase): def test_create_local_range_name(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: calcDoc = self.xUITest.getTopFocusWindow() xPosWindow = calcDoc.getChild('pos_window') diff --git a/sc/qa/uitest/range_name/tdf137617.py b/sc/qa/uitest/range_name/tdf137617.py index 8e22158bb5a3..eebda229baf0 100644 --- a/sc/qa/uitest/range_name/tdf137617.py +++ b/sc/qa/uitest/range_name/tdf137617.py @@ -15,7 +15,7 @@ class tdf137617(UITestCase): def test_tdf137617(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): calcDoc = self.xUITest.getTopFocusWindow() gridwin = calcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/range_name/tdf138822.py b/sc/qa/uitest/range_name/tdf138822.py index 7cb8f990ed1b..9fd53b58192c 100644 --- a/sc/qa/uitest/range_name/tdf138822.py +++ b/sc/qa/uitest/range_name/tdf138822.py @@ -11,7 +11,7 @@ from uitest.uihelper.common import type_text class tdf138822(UITestCase): def test_tdf138822(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): calcDoc = self.xUITest.getTopFocusWindow() xPosWindow = calcDoc.getChild('pos_window') diff --git a/sc/qa/uitest/range_name/tdf86214.py b/sc/qa/uitest/range_name/tdf86214.py index 6515ed74d97d..1f3caea47c01 100644 --- a/sc/qa/uitest/range_name/tdf86214.py +++ b/sc/qa/uitest/range_name/tdf86214.py @@ -15,7 +15,7 @@ class InvalidNames(UITestCase): def test_invalid_names(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.ui_test.execute_modeless_dialog_through_command(".uno:AddName") diff --git a/sc/qa/uitest/search_replace/tdf132097.py b/sc/qa/uitest/search_replace/tdf132097.py index 007ae4d734bc..8e9f3eb40b97 100644 --- a/sc/qa/uitest/search_replace/tdf132097.py +++ b/sc/qa/uitest/search_replace/tdf132097.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf132097(UITestCase): def test_tdf132097(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() self.ui_test.execute_modeless_dialog_through_command(".uno:SearchDialog") diff --git a/sc/qa/uitest/search_replace/tdf39917.py b/sc/qa/uitest/search_replace/tdf39917.py index 74b4ec02bd6f..f37151b9eea2 100644 --- a/sc/qa/uitest/search_replace/tdf39917.py +++ b/sc/qa/uitest/search_replace/tdf39917.py @@ -18,7 +18,7 @@ from uitest.debug import sleep class tdf39917(UITestCase): def test_tdf39917_find_replace_R1C1(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #* Tools --> Options --> Calc --> Formula --> Syntax = Excel R1C1 diff --git a/sc/qa/uitest/search_replace/tdf44398.py b/sc/qa/uitest/search_replace/tdf44398.py index f18f311fe989..948ba2a73eea 100644 --- a/sc/qa/uitest/search_replace/tdf44398.py +++ b/sc/qa/uitest/search_replace/tdf44398.py @@ -17,7 +17,7 @@ from uitest.debug import sleep class tdf44398(UITestCase): def test_tdf44398_find_replace_regexp(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") @@ -49,7 +49,7 @@ class tdf44398(UITestCase): def test_tdf44398_find_replace_regexp_string(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/search_replace/tdf57523.py b/sc/qa/uitest/search_replace/tdf57523.py index 3eb890622d2f..273847a44dc2 100644 --- a/sc/qa/uitest/search_replace/tdf57523.py +++ b/sc/qa/uitest/search_replace/tdf57523.py @@ -13,7 +13,7 @@ from uitest.uihelper.common import get_state_as_dict class tdf57523(UITestCase): def test_tdf57523(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/signatureLine/insertSignatureLine.py b/sc/qa/uitest/signatureLine/insertSignatureLine.py index 8281e14162ef..26e259a5d2f1 100644 --- a/sc/qa/uitest/signatureLine/insertSignatureLine.py +++ b/sc/qa/uitest/signatureLine/insertSignatureLine.py @@ -15,7 +15,7 @@ from com.sun.star.lang import IndexOutOfBoundsException class insertSignatureLineCalc(UITestCase): def test_insert_signature_line_calc(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") @@ -54,7 +54,7 @@ class insertSignatureLineCalc(UITestCase): def test_insert_signature_line2_calc(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/sort/naturalSort.py b/sc/qa/uitest/sort/naturalSort.py index 15b160f41eda..ce546e557a73 100644 --- a/sc/qa/uitest/sort/naturalSort.py +++ b/sc/qa/uitest/sort/naturalSort.py @@ -18,7 +18,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class CalcNaturalSorting(UITestCase): def test_natural_sorting_rows(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #enter data @@ -70,7 +70,7 @@ class CalcNaturalSorting(UITestCase): def test_natural_sorting_columns(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #enter data diff --git a/sc/qa/uitest/sort/sorting.py b/sc/qa/uitest/sort/sorting.py index 1aae9da04de0..5e20b52eec35 100644 --- a/sc/qa/uitest/sort/sorting.py +++ b/sc/qa/uitest/sort/sorting.py @@ -18,7 +18,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class CalcSorting(UITestCase): def test_Sortingbuttons_detect_columnheaders(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #In column A enter: Number; 3; 4; 6; 2 / In column B enter: Misc; s; d; f; g @@ -69,7 +69,7 @@ class CalcSorting(UITestCase): self.assertEqual(get_cell_by_position(document, 0, 1, 0).getString(), "Misc") def test_Sortingbuttons_list_has_not_columnheaders(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #In column A enter: 5; 3; 4; 6; 2 / In column B enter: e; s; d; f; g @@ -104,7 +104,7 @@ class CalcSorting(UITestCase): #Cancel dialog def test_Sorting_default_to_selected_column(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #In column A enter: Number; 3; 4; 6; 2 / In column B enter: Misc; s; d; f; g @@ -143,7 +143,7 @@ class CalcSorting(UITestCase): def test_Sorting_default_to_selected_TAB_A_column(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #In column A enter: Number; 3; 4; 6; 2 / In column B enter: Misc; s; d; f; g @@ -173,7 +173,7 @@ class CalcSorting(UITestCase): def test_Sorting_default_to_selected_TAB_B_column(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #In column A enter: Number; 3; 4; 6; 2 / In column B enter: Misc; s; d; f; g @@ -202,7 +202,7 @@ class CalcSorting(UITestCase): def test_Sorting_sort_criteria(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #In column A enter: Number; 3; 4; 6; 2 / In column B enter: Misc; s; d; f; g diff --git a/sc/qa/uitest/sort/subtotals.py b/sc/qa/uitest/sort/subtotals.py index 2ed2a60fecc2..f2abcd21b1a9 100644 --- a/sc/qa/uitest/sort/subtotals.py +++ b/sc/qa/uitest/sort/subtotals.py @@ -17,7 +17,7 @@ from uitest.uihelper.common import get_state_as_dict, get_url_for_data_file class Subtotals(UITestCase): def test_tdf114720(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: XcalcDoc = self.xUITest.getTopFocusWindow() gridwin = XcalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/sort/tdf100517.py b/sc/qa/uitest/sort/tdf100517.py index c2a36be8d758..23928f4f9e97 100644 --- a/sc/qa/uitest/sort/tdf100517.py +++ b/sc/qa/uitest/sort/tdf100517.py @@ -27,7 +27,7 @@ class tdf100517(UITestCase): def test_tdf100517(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/sort/tdf126678.py b/sc/qa/uitest/sort/tdf126678.py index 11c2d9a621b6..5ee552042f05 100644 --- a/sc/qa/uitest/sort/tdf126678.py +++ b/sc/qa/uitest/sort/tdf126678.py @@ -27,7 +27,7 @@ class tdf126678(UITestCase): def test_tdf126678(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/sort/tdf53482.py b/sc/qa/uitest/sort/tdf53482.py index fdfbe1947c78..56df169ffc8c 100644 --- a/sc/qa/uitest/sort/tdf53482.py +++ b/sc/qa/uitest/sort/tdf53482.py @@ -44,7 +44,7 @@ class tdf53482(UITestCase): self.assertEqual(get_cell_by_position(calc_doc, 0, 6, 123).getString(), "13") def test_tdf53482_Range_contains_column_headings(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #In column A enter: Misc; s; d; f; g diff --git a/sc/qa/uitest/sort/tdf91305.py b/sc/qa/uitest/sort/tdf91305.py index e49cf3a6149e..73213db22eee 100644 --- a/sc/qa/uitest/sort/tdf91305.py +++ b/sc/qa/uitest/sort/tdf91305.py @@ -18,7 +18,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf91305(UITestCase): def test_tdf91305_sort_text_cells_rows(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #In column A enter texts @@ -40,7 +40,7 @@ class tdf91305(UITestCase): self.assertEqual(get_cell_by_position(document, 0, 0, 2).getString(), "aa") def test_tdf91305_sort_text_cells_columns(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #In column A enter texts @@ -76,7 +76,7 @@ class tdf91305(UITestCase): def test_tdf91305_sort_text_cells_rows(self): #Selecting some empty cells and pressing SORT causes empty cells to move below. #No matter if you sort from A to Z or from Z to A. - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #In column A enter text @@ -94,7 +94,7 @@ class tdf91305(UITestCase): #2) Placing digit to the header position and running set of sorts will make digit to be on 2nd or last position. def test_tdf91305_sort_text_cells_1st_row_digit(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #In column A enter texts diff --git a/sc/qa/uitest/sort/tdf99773.py b/sc/qa/uitest/sort/tdf99773.py index c56707448fb5..aa4a114a860c 100644 --- a/sc/qa/uitest/sort/tdf99773.py +++ b/sc/qa/uitest/sort/tdf99773.py @@ -17,7 +17,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf99773(UITestCase): def test_tdf99773_natural_sorting_space(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #enter data diff --git a/sc/qa/uitest/statistics/anova.py b/sc/qa/uitest/statistics/anova.py index 880e926587b3..0c15c15ba43b 100644 --- a/sc/qa/uitest/statistics/anova.py +++ b/sc/qa/uitest/statistics/anova.py @@ -16,7 +16,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class anova(UITestCase): def test_statistic_anova(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data diff --git a/sc/qa/uitest/statistics/chiSquare.py b/sc/qa/uitest/statistics/chiSquare.py index be2a2f801f5f..a8ae58259a97 100644 --- a/sc/qa/uitest/statistics/chiSquare.py +++ b/sc/qa/uitest/statistics/chiSquare.py @@ -16,7 +16,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class chiSquare(UITestCase): def test_chiSquare(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data diff --git a/sc/qa/uitest/statistics/correlation.py b/sc/qa/uitest/statistics/correlation.py index 775693a8d944..262afd5aed42 100644 --- a/sc/qa/uitest/statistics/correlation.py +++ b/sc/qa/uitest/statistics/correlation.py @@ -16,7 +16,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class correlation(UITestCase): def test_statistic_correlation_column(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data @@ -105,7 +105,7 @@ class correlation(UITestCase): def test_statistic_correlation_row(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data diff --git a/sc/qa/uitest/statistics/covariance.py b/sc/qa/uitest/statistics/covariance.py index 7bf4802e954c..3d539706f9a6 100644 --- a/sc/qa/uitest/statistics/covariance.py +++ b/sc/qa/uitest/statistics/covariance.py @@ -16,7 +16,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class covariance(UITestCase): def test_statistic_covariance_column(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data @@ -103,7 +103,7 @@ class covariance(UITestCase): def test_statistic_covariance_row(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data diff --git a/sc/qa/uitest/statistics/descriptiveStatistics.py b/sc/qa/uitest/statistics/descriptiveStatistics.py index db62c307cef9..4552381a19d1 100644 --- a/sc/qa/uitest/statistics/descriptiveStatistics.py +++ b/sc/qa/uitest/statistics/descriptiveStatistics.py @@ -16,7 +16,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class descriptiveStatistics(UITestCase): def test_descriptive_statistics(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data diff --git a/sc/qa/uitest/statistics/exponentialSmoothing.py b/sc/qa/uitest/statistics/exponentialSmoothing.py index 26b49428bc26..a338f90d4be0 100644 --- a/sc/qa/uitest/statistics/exponentialSmoothing.py +++ b/sc/qa/uitest/statistics/exponentialSmoothing.py @@ -16,7 +16,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class exponentialSmoothing(UITestCase): def test_exponential_smoothing_column(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data @@ -114,7 +114,7 @@ class exponentialSmoothing(UITestCase): def test_exponential_smoothing_row(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data diff --git a/sc/qa/uitest/statistics/fTest.py b/sc/qa/uitest/statistics/fTest.py index 38c389f86c30..8dd67e87ade2 100644 --- a/sc/qa/uitest/statistics/fTest.py +++ b/sc/qa/uitest/statistics/fTest.py @@ -16,7 +16,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tTest(UITestCase): def test_fTest_column(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data diff --git a/sc/qa/uitest/statistics/movingAverage.py b/sc/qa/uitest/statistics/movingAverage.py index cd4d77ebc78e..668d943c2338 100644 --- a/sc/qa/uitest/statistics/movingAverage.py +++ b/sc/qa/uitest/statistics/movingAverage.py @@ -16,7 +16,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class movingAverage(UITestCase): def test_moving_average_column(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data @@ -110,7 +110,7 @@ class movingAverage(UITestCase): def test_moving_average_row(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data diff --git a/sc/qa/uitest/statistics/regression.py b/sc/qa/uitest/statistics/regression.py index 6432ed74d53c..b77582ad5657 100644 --- a/sc/qa/uitest/statistics/regression.py +++ b/sc/qa/uitest/statistics/regression.py @@ -102,7 +102,7 @@ class regression(UITestCase): self.ui_test.close_dialog_through_button(xOKBtn) def test_regression_cancel(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.ui_test.execute_modeless_dialog_through_command(".uno:RegressionDialog") xDialog = self.xUITest.getTopFocusWindow() xCancelBtn = xDialog.getChild("cancel") diff --git a/sc/qa/uitest/statistics/sampling.py b/sc/qa/uitest/statistics/sampling.py index 0483bba190d7..88f3784b5e76 100644 --- a/sc/qa/uitest/statistics/sampling.py +++ b/sc/qa/uitest/statistics/sampling.py @@ -16,7 +16,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class sampling(UITestCase): def test_statistic_sampling(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data diff --git a/sc/qa/uitest/statistics/tTest.py b/sc/qa/uitest/statistics/tTest.py index d23c1074333f..7ff546647315 100644 --- a/sc/qa/uitest/statistics/tTest.py +++ b/sc/qa/uitest/statistics/tTest.py @@ -16,7 +16,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tTest(UITestCase): def test_tTest_column(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data diff --git a/sc/qa/uitest/statistics/zTest.py b/sc/qa/uitest/statistics/zTest.py index 1c23ccef117b..12bebf983670 100644 --- a/sc/qa/uitest/statistics/zTest.py +++ b/sc/qa/uitest/statistics/zTest.py @@ -16,7 +16,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class zTest(UITestCase): def test_zTest_column(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") #fill data diff --git a/sc/qa/uitest/textCase/textCase.py b/sc/qa/uitest/textCase/textCase.py index 2ace396d9acb..fd208e67f607 100644 --- a/sc/qa/uitest/textCase/textCase.py +++ b/sc/qa/uitest/textCase/textCase.py @@ -13,7 +13,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class textCase(UITestCase): def test_text_case_switch(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") diff --git a/sc/qa/uitest/validity/tdf138134.py b/sc/qa/uitest/validity/tdf138134.py index 5480c64a2d19..d6e3f55cfece 100644 --- a/sc/qa/uitest/validity/tdf138134.py +++ b/sc/qa/uitest/validity/tdf138134.py @@ -15,7 +15,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class DetectiveCircle(UITestCase): def test_delete_circle_at_formula(self): - with self.ui_test.create_doc_in_start_center_guarded("calc") as document: + with self.ui_test.create_doc_in_start_center("calc") as document: xCalcDoc = self.xUITest.getTopFocusWindow() gridwin = xCalcDoc.getChild("grid_window") enter_text_to_cell(gridwin, "A1", "1") diff --git a/sc/qa/uitest/validity/tdf53920.py b/sc/qa/uitest/validity/tdf53920.py index 3ebb6e991a16..06f288df7de9 100644 --- a/sc/qa/uitest/validity/tdf53920.py +++ b/sc/qa/uitest/validity/tdf53920.py @@ -15,7 +15,7 @@ from uitest.debug import sleep #Bug 53920 - EDITING: Data Validity Cell Range not being applied to multiple selected cells class tdf53920(UITestCase): def test_tdf53920_validity_multiple_cells(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") gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"})) diff --git a/sc/qa/uitest/validity/tdf65686.py b/sc/qa/uitest/validity/tdf65686.py index 278f0d78caf1..858eaea27982 100644 --- a/sc/qa/uitest/validity/tdf65686.py +++ b/sc/qa/uitest/validity/tdf65686.py @@ -14,7 +14,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues #Bug 65686 - EDITING Data > Validity broken (for list entries at least) class tdf65686(UITestCase): def test_tdf65686_validity_list(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") gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"})) diff --git a/sc/qa/uitest/validity/tdf96698.py b/sc/qa/uitest/validity/tdf96698.py index 95f55284a5e6..13b018c216ec 100644 --- a/sc/qa/uitest/validity/tdf96698.py +++ b/sc/qa/uitest/validity/tdf96698.py @@ -14,7 +14,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues #Bug 96698 - Data => Validity => Custom (like Excel) is missing class tdf96698(UITestCase): def test_tdf96698_validity_custom_formula(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/sc/qa/uitest/validity/validity.py b/sc/qa/uitest/validity/validity.py index 789c55e31a85..7d1315fdd016 100644 --- a/sc/qa/uitest/validity/validity.py +++ b/sc/qa/uitest/validity/validity.py @@ -14,7 +14,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class validity(UITestCase): def test_validity_tab_criteria(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") gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"})) @@ -50,7 +50,7 @@ class validity(UITestCase): def test_validity_tab_inputHelp(self): #validationhelptabpage.ui - 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") gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"})) @@ -80,7 +80,7 @@ class validity(UITestCase): def test_validity_tab_errorAlert(self): # erroralerttabpage.ui - 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") gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"})) diff --git a/sd/qa/uitest/impress_tests/autocorrectOptions.py b/sd/qa/uitest/impress_tests/autocorrectOptions.py index c91ba95b0fa2..eaca0fd72b80 100644 --- a/sd/qa/uitest/impress_tests/autocorrectOptions.py +++ b/sd/qa/uitest/impress_tests/autocorrectOptions.py @@ -14,7 +14,7 @@ from uitest.uihelper.common import select_pos class autocorrectOptions(UITestCase): def test_autocorrect_options_impress(self): - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") self.ui_test.close_dialog_through_button(xCancelBtn) diff --git a/sd/qa/uitest/impress_tests/customSlideShow.py b/sd/qa/uitest/impress_tests/customSlideShow.py index 10af7a91648c..403281bf4c62 100644 --- a/sd/qa/uitest/impress_tests/customSlideShow.py +++ b/sd/qa/uitest/impress_tests/customSlideShow.py @@ -9,7 +9,7 @@ from uitest.uihelper.common import get_state_as_dict, type_text class customSlideShow(UITestCase): def test_customSlideShow(self): - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): MainWindow = self.xUITest.getTopFocusWindow() TemplateDialog = self.xUITest.getTopFocusWindow() cancel = TemplateDialog.getChild("close") diff --git a/sd/qa/uitest/impress_tests/insertSlide.py b/sd/qa/uitest/impress_tests/insertSlide.py index be65b69e4195..360b67bf7d96 100644 --- a/sd/qa/uitest/impress_tests/insertSlide.py +++ b/sd/qa/uitest/impress_tests/insertSlide.py @@ -15,7 +15,7 @@ from uitest.uihelper.common import select_pos class insertSlide(UITestCase): def test_insert_slide(self): - with self.ui_test.create_doc_in_start_center_guarded("impress") as document: + with self.ui_test.create_doc_in_start_center("impress") as document: xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") self.ui_test.close_dialog_through_button(xCancelBtn) @@ -30,7 +30,7 @@ class insertSlide(UITestCase): self.assertEqual(document.DrawPages.getCount(), 1) #nr. of pages def test_tdf85360_insert_4th_slide(self): - with self.ui_test.create_doc_in_start_center_guarded("impress") as document: + with self.ui_test.create_doc_in_start_center("impress") as document: xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") self.ui_test.close_dialog_through_button(xCancelBtn) diff --git a/sd/qa/uitest/impress_tests/masterElements.py b/sd/qa/uitest/impress_tests/masterElements.py index 09d685f53898..d36a2bbd611b 100644 --- a/sd/qa/uitest/impress_tests/masterElements.py +++ b/sd/qa/uitest/impress_tests/masterElements.py @@ -14,7 +14,7 @@ from uitest.uihelper.common import select_pos class masterElements(UITestCase): def test_master_elements(self): - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") self.ui_test.close_dialog_through_button(xCancelBtn) diff --git a/sd/qa/uitest/impress_tests/masterSlides.py b/sd/qa/uitest/impress_tests/masterSlides.py index fe0ef9c8b0a2..27130b4f9ceb 100644 --- a/sd/qa/uitest/impress_tests/masterSlides.py +++ b/sd/qa/uitest/impress_tests/masterSlides.py @@ -13,7 +13,7 @@ class masterSlides(UITestCase): def test_change_master_slide_from_dialog(self): - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") diff --git a/sd/qa/uitest/impress_tests/renameSlide.py b/sd/qa/uitest/impress_tests/renameSlide.py index 8dffbc7e5350..345a1b55c50b 100644 --- a/sd/qa/uitest/impress_tests/renameSlide.py +++ b/sd/qa/uitest/impress_tests/renameSlide.py @@ -11,7 +11,7 @@ from uitest.uihelper.common import get_state_as_dict class renameSlide(UITestCase): def test_rename_slide(self): - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") self.ui_test.close_dialog_through_button(xCancelBtn) diff --git a/sd/qa/uitest/impress_tests/slideShowSettings.py b/sd/qa/uitest/impress_tests/slideShowSettings.py index 9ec66d4634a2..998cdf2df44e 100644 --- a/sd/qa/uitest/impress_tests/slideShowSettings.py +++ b/sd/qa/uitest/impress_tests/slideShowSettings.py @@ -8,7 +8,7 @@ from uitest.uihelper.common import get_state_as_dict, type_text class slideShowSettings(UITestCase): def test_slideShowSettings(self): - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): MainWindow = self.xUITest.getTopFocusWindow() TemplateDialog = self.xUITest.getTopFocusWindow() cancel = TemplateDialog.getChild("close") diff --git a/sd/qa/uitest/impress_tests/tdf106612.py b/sd/qa/uitest/impress_tests/tdf106612.py index 4473603d6bf2..a7bd3bee1f30 100644 --- a/sd/qa/uitest/impress_tests/tdf106612.py +++ b/sd/qa/uitest/impress_tests/tdf106612.py @@ -11,7 +11,7 @@ from uitest.uihelper.common import get_state_as_dict class Tdf106612(UITestCase): def test_tdf106612(self): - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") self.ui_test.close_dialog_through_button(xCancelBtn) diff --git a/sd/qa/uitest/impress_tests/tdf125449.py b/sd/qa/uitest/impress_tests/tdf125449.py index 0b2f7616814c..0d70b90ed47b 100644 --- a/sd/qa/uitest/impress_tests/tdf125449.py +++ b/sd/qa/uitest/impress_tests/tdf125449.py @@ -12,7 +12,7 @@ class tdf125449(UITestCase): def test_tdf125449(self): - with self.ui_test.create_doc_in_start_center_guarded("impress") as document: + with self.ui_test.create_doc_in_start_center("impress") as document: xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") diff --git a/sd/qa/uitest/impress_tests/tdf126605.py b/sd/qa/uitest/impress_tests/tdf126605.py index e51359f43361..ba277f726951 100644 --- a/sd/qa/uitest/impress_tests/tdf126605.py +++ b/sd/qa/uitest/impress_tests/tdf126605.py @@ -10,7 +10,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf126605(UITestCase): def test_run(self): - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") self.ui_test.close_dialog_through_button(xCancelBtn) diff --git a/sd/qa/uitest/impress_tests/tdf130440.py b/sd/qa/uitest/impress_tests/tdf130440.py index ae68331a94db..ea6b398a2841 100644 --- a/sd/qa/uitest/impress_tests/tdf130440.py +++ b/sd/qa/uitest/impress_tests/tdf130440.py @@ -10,7 +10,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf129346(UITestCase): def test_run(self): - with self.ui_test.create_doc_in_start_center_guarded("impress") as document: + with self.ui_test.create_doc_in_start_center("impress") as document: xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") self.ui_test.close_dialog_through_button(xCancelBtn) diff --git a/sd/qa/uitest/impress_tests/tdf134734.py b/sd/qa/uitest/impress_tests/tdf134734.py index b221f76ed05e..c2f2b883e152 100644 --- a/sd/qa/uitest/impress_tests/tdf134734.py +++ b/sd/qa/uitest/impress_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("impress") as document: + with self.ui_test.create_doc_in_start_center("impress") as document: TemplateDialog = self.xUITest.getTopFocusWindow() close = TemplateDialog.getChild("close") self.ui_test.close_dialog_through_button(close) diff --git a/sd/qa/uitest/impress_tests/tdf137729.py b/sd/qa/uitest/impress_tests/tdf137729.py index 08f2a74e9514..dcc1ebfb3a3e 100644 --- a/sd/qa/uitest/impress_tests/tdf137729.py +++ b/sd/qa/uitest/impress_tests/tdf137729.py @@ -13,7 +13,7 @@ class tdf137729(UITestCase): def test_tdf137729(self): - with self.ui_test.create_doc_in_start_center_guarded("impress") as document: + with self.ui_test.create_doc_in_start_center("impress") as document: xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") diff --git a/sd/qa/uitest/impress_tests/tdf139511.py b/sd/qa/uitest/impress_tests/tdf139511.py index eb58c2afbf41..5077ed64ba8b 100644 --- a/sd/qa/uitest/impress_tests/tdf139511.py +++ b/sd/qa/uitest/impress_tests/tdf139511.py @@ -12,7 +12,7 @@ from uitest.uihelper.common import change_measurement_unit class tdf139511(UITestCase): def test_tdf139511(self): - with self.ui_test.create_doc_in_start_center_guarded("impress") as document: + with self.ui_test.create_doc_in_start_center("impress") as document: xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") self.ui_test.close_dialog_through_button(xCancelBtn) diff --git a/sd/qa/uitest/impress_tests/tdf141297.py b/sd/qa/uitest/impress_tests/tdf141297.py index 355ded1f27ee..19956e9bcb73 100644 --- a/sd/qa/uitest/impress_tests/tdf141297.py +++ b/sd/qa/uitest/impress_tests/tdf141297.py @@ -15,7 +15,7 @@ class tdf141297(UITestCase): def test_tdf141297(self): - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") diff --git a/sd/qa/uitest/impress_tests/tdf141708.py b/sd/qa/uitest/impress_tests/tdf141708.py index a819456b899e..9b6c3f3a9e53 100644 --- a/sd/qa/uitest/impress_tests/tdf141708.py +++ b/sd/qa/uitest/impress_tests/tdf141708.py @@ -10,7 +10,7 @@ class tdf141708(UITestCase): def test_tdf141708(self): - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") @@ -20,7 +20,7 @@ class tdf141708(UITestCase): self.xUITest.executeCommand(".uno:CloseDoc") - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") diff --git a/sd/qa/uitest/impress_tests/tdf82616.py b/sd/qa/uitest/impress_tests/tdf82616.py index a156469aa48b..2e1d85d91528 100644 --- a/sd/qa/uitest/impress_tests/tdf82616.py +++ b/sd/qa/uitest/impress_tests/tdf82616.py @@ -13,7 +13,7 @@ from uitest.framework import UITestCase class Tdf82616(UITestCase): def test_tdf82616(self): - with self.ui_test.create_doc_in_start_center_guarded("impress") as document: + with self.ui_test.create_doc_in_start_center("impress") as document: xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") diff --git a/sd/qa/uitest/impress_tests/tdf91762.py b/sd/qa/uitest/impress_tests/tdf91762.py index 75573982adbf..2abc1a6589f1 100644 --- a/sd/qa/uitest/impress_tests/tdf91762.py +++ b/sd/qa/uitest/impress_tests/tdf91762.py @@ -11,7 +11,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class tdf91762(UITestCase): def test_tdf91762(self): - with self.ui_test.create_doc_in_start_center_guarded("impress") as document: + with self.ui_test.create_doc_in_start_center("impress") as document: xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") self.ui_test.close_dialog_through_button(xCancelBtn) diff --git a/sd/qa/uitest/impress_tests/textColumnsDialog.py b/sd/qa/uitest/impress_tests/textColumnsDialog.py index e989a4e44b85..2d13c6a9fb5d 100644 --- a/sd/qa/uitest/impress_tests/textColumnsDialog.py +++ b/sd/qa/uitest/impress_tests/textColumnsDialog.py @@ -15,7 +15,7 @@ from uitest.framework import UITestCase class textColumnsDialog(UITestCase): def test_textColumnsDialog(self): - with self.ui_test.create_doc_in_start_center_guarded("impress") as document: + with self.ui_test.create_doc_in_start_center("impress") as document: xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") diff --git a/svx/qa/uitest/table/tablecontroller.py b/svx/qa/uitest/table/tablecontroller.py index c3e8691c40de..26390cb5c963 100644 --- a/svx/qa/uitest/table/tablecontroller.py +++ b/svx/qa/uitest/table/tablecontroller.py @@ -14,7 +14,7 @@ class SvxTableControllerTest(UITestCase): def testOnFormatTable(self): # Create an Impress document with a single table in it. - 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")) self.xUITest.executeCommand(".uno:SelectAll") @@ -41,7 +41,7 @@ class SvxTableControllerTest(UITestCase): def testUndoCrash(self): # Given an Impress document with a single table in it: - 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")) self.xUITest.executeCommand(".uno:SelectAll") 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"): diff --git a/uitest/demo_ui/char_dialog.py b/uitest/demo_ui/char_dialog.py index 1f231c3b39c3..c5c4668f7821 100644 --- a/uitest/demo_ui/char_dialog.py +++ b/uitest/demo_ui/char_dialog.py @@ -11,7 +11,7 @@ from uitest.framework import UITestCase class CharDialogText(UITestCase): def test_select_char(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): with self.ui_test.execute_dialog_through_command(".uno:InsertSymbol", close_button="cancel") as xCharDialog: diff --git a/uitest/demo_ui/checkbox.py b/uitest/demo_ui/checkbox.py index d944b62d37d4..23d065595fee 100644 --- a/uitest/demo_ui/checkbox.py +++ b/uitest/demo_ui/checkbox.py @@ -13,7 +13,7 @@ class CheckBoxTest(UITestCase): def test_toggle_checkbox(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): with self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog") as xCellsDlg: xNegativeNumRedCB = xCellsDlg.getChild("negnumred") diff --git a/uitest/demo_ui/combobox.py b/uitest/demo_ui/combobox.py index 924b5c3af035..50aa2b40d6ff 100644 --- a/uitest/demo_ui/combobox.py +++ b/uitest/demo_ui/combobox.py @@ -14,7 +14,7 @@ class ComboBoxTest(UITestCase): def test_select_entry_pos(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.ui_test.execute_modeless_dialog_through_command(".uno:AddName") xAddNameDlg = self.xUITest.getTopFocusWindow() diff --git a/uitest/demo_ui/command_with_parameters.py b/uitest/demo_ui/command_with_parameters.py index 3a140643b659..4d42f710f584 100644 --- a/uitest/demo_ui/command_with_parameters.py +++ b/uitest/demo_ui/command_with_parameters.py @@ -12,7 +12,7 @@ class CommandWithParametersTest(UITestCase): def test_text_color_change(self): - with self.ui_test.create_doc_in_start_center_guarded("writer"): + with self.ui_test.create_doc_in_start_center("writer"): self.xUITest.executeCommandWithParameters(".uno:Color", mkPropertyValues({"Color": 16776960})) diff --git a/uitest/demo_ui/edit.py b/uitest/demo_ui/edit.py index 7007c07b4a90..75d20b6afc6f 100644 --- a/uitest/demo_ui/edit.py +++ b/uitest/demo_ui/edit.py @@ -16,7 +16,7 @@ class EditTest(UITestCase): def test_type_text(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.ui_test.execute_modeless_dialog_through_command(".uno:AddName") xAddNameDlg = self.xUITest.getTopFocusWindow() @@ -31,7 +31,7 @@ class EditTest(UITestCase): def test_select_text(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): self.ui_test.execute_modeless_dialog_through_command(".uno:AddName") xAddNameDlg = self.xUITest.getTopFocusWindow() diff --git a/uitest/demo_ui/gridwin.py b/uitest/demo_ui/gridwin.py index 142c395f22c9..12131182431a 100644 --- a/uitest/demo_ui/gridwin.py +++ b/uitest/demo_ui/gridwin.py @@ -13,7 +13,7 @@ class GridWinTest(UITestCase): def test_select_cell(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() xGridWindow = xCalcDoc.getChild("grid_window") @@ -23,7 +23,7 @@ class GridWinTest(UITestCase): def test_select_range(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() xGridWindow = xCalcDoc.getChild("grid_window") @@ -33,7 +33,7 @@ class GridWinTest(UITestCase): def test_extend_range(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): xTopWindow = self.xUITest.getTopFocusWindow() xGridWindow = xTopWindow.getChild("grid_window") diff --git a/uitest/demo_ui/hierarchy.py b/uitest/demo_ui/hierarchy.py index b17626a108ca..17c81d5733f0 100644 --- a/uitest/demo_ui/hierarchy.py +++ b/uitest/demo_ui/hierarchy.py @@ -15,7 +15,7 @@ class CheckBoxTest(UITestCase): def test_get_json(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): with self.ui_test.execute_dialog_through_command(".uno:About", close_button="btnClose") as xAboutDlg: diff --git a/uitest/demo_ui/listbox.py b/uitest/demo_ui/listbox.py index 6a1a075d35f4..852d2a771070 100644 --- a/uitest/demo_ui/listbox.py +++ b/uitest/demo_ui/listbox.py @@ -14,7 +14,7 @@ class ListBoxTest(UITestCase): def test_select_entry_pos(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): with self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog"): pass @@ -22,7 +22,7 @@ class ListBoxTest(UITestCase): def test_select_entry_text(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): with self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog"): pass diff --git a/uitest/demo_ui/radiobutton.py b/uitest/demo_ui/radiobutton.py index 628cf2a38834..91a7f95effe9 100644 --- a/uitest/demo_ui/radiobutton.py +++ b/uitest/demo_ui/radiobutton.py @@ -25,7 +25,7 @@ class RadioButtonTest(UITestCase): def test_toggle_radiobutton(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): with self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog") as xCellsDlg: xNegativeNumRedCB = xCellsDlg.getChild("negnumred") diff --git a/uitest/demo_ui/spinfield.py b/uitest/demo_ui/spinfield.py index bed26702122b..351223794caf 100644 --- a/uitest/demo_ui/spinfield.py +++ b/uitest/demo_ui/spinfield.py @@ -14,7 +14,7 @@ class SpinFieldTest(UITestCase): def test_up(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): with self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog") as xCellsDlg: @@ -28,7 +28,7 @@ class SpinFieldTest(UITestCase): def test_down(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): with self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog") as xCellsDlg: @@ -48,7 +48,7 @@ class SpinFieldTest(UITestCase): def test_text(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): with self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog") as xCellsDlg: diff --git a/uitest/demo_ui/tabcontrol.py b/uitest/demo_ui/tabcontrol.py index f47c51f8303c..eb93339eb391 100644 --- a/uitest/demo_ui/tabcontrol.py +++ b/uitest/demo_ui/tabcontrol.py @@ -16,7 +16,7 @@ class TabControlTest(UITestCase): def test_select_pos(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() xGridWindow = xCalcDoc.getChild("grid_window") diff --git a/uitest/demo_ui/tabdialog.py b/uitest/demo_ui/tabdialog.py index e3fde961f014..6aadf13f73a9 100644 --- a/uitest/demo_ui/tabdialog.py +++ b/uitest/demo_ui/tabdialog.py @@ -14,7 +14,7 @@ class TabDialogTest(UITestCase): def test_select_tab_page_pos(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): with self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog"): pass @@ -22,7 +22,7 @@ class TabDialogTest(UITestCase): def test_select_tab_page_name(self): - with self.ui_test.create_doc_in_start_center_guarded("calc"): + with self.ui_test.create_doc_in_start_center("calc"): with self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog"): pass diff --git a/uitest/demo_ui/treelist.py b/uitest/demo_ui/treelist.py index 20331230df08..baea77cf4ef6 100644 --- a/uitest/demo_ui/treelist.py +++ b/uitest/demo_ui/treelist.py @@ -16,7 +16,7 @@ class TreeListTest(UITestCase): def test_expand(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() xGridWindow = xCalcDoc.getChild("grid_window") diff --git a/uitest/impress_tests/backgrounds.py b/uitest/impress_tests/backgrounds.py index 256878926967..e02c708aa396 100644 --- a/uitest/impress_tests/backgrounds.py +++ b/uitest/impress_tests/backgrounds.py @@ -105,7 +105,7 @@ class ImpressBackgrounds(UITestCase): def test_background_dialog(self): - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") diff --git a/uitest/impress_tests/drawinglayer.py b/uitest/impress_tests/drawinglayer.py index 93edd5503df7..9f193d3cfb41 100644 --- a/uitest/impress_tests/drawinglayer.py +++ b/uitest/impress_tests/drawinglayer.py @@ -13,7 +13,7 @@ from uitest.framework import UITestCase class ImpressDrawinglayerTest(UITestCase): def test_move_object(self): - with self.ui_test.create_doc_in_start_center_guarded("impress") as document: + with self.ui_test.create_doc_in_start_center("impress") as document: xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") @@ -56,7 +56,7 @@ class ImpressDrawinglayerTest(UITestCase): def test_resize_object(self): - with self.ui_test.create_doc_in_start_center_guarded("impress") as document: + with self.ui_test.create_doc_in_start_center("impress") as document: xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") @@ -99,7 +99,7 @@ class ImpressDrawinglayerTest(UITestCase): def test_rotate_object(self): - with self.ui_test.create_doc_in_start_center_guarded("impress") as document: + with self.ui_test.create_doc_in_start_center("impress") as document: xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") diff --git a/uitest/impress_tests/layouts.py b/uitest/impress_tests/layouts.py index 1c7c3b43bf8c..fbd0bd8d88b5 100644 --- a/uitest/impress_tests/layouts.py +++ b/uitest/impress_tests/layouts.py @@ -11,7 +11,7 @@ class ImpressLayouts(UITestCase): def test_impress_layouts(self): - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") diff --git a/uitest/impress_tests/start.py b/uitest/impress_tests/start.py index f9e51cf249d8..6d6563307d61 100644 --- a/uitest/impress_tests/start.py +++ b/uitest/impress_tests/start.py @@ -12,7 +12,7 @@ from uitest.framework import UITestCase class SimpleImpressTest(UITestCase): def test_start_impress(self): - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") @@ -28,7 +28,7 @@ class SimpleImpressTest(UITestCase): def test_select_page(self): - with self.ui_test.create_doc_in_start_center_guarded("impress"): + with self.ui_test.create_doc_in_start_center("impress"): xTemplateDlg = self.xUITest.getTopFocusWindow() xCancelBtn = xTemplateDlg.getChild("close") diff --git a/uitest/math_tests/start.py b/uitest/math_tests/start.py index 700e38c7c87d..4645dff920da 100644 --- a/uitest/math_tests/start.py +++ b/uitest/math_tests/start.py @@ -18,14 +18,14 @@ class SimpleMathTest(UITestCase): def test_start_math(self): - with self.ui_test.create_doc_in_start_center_guarded("math"): + with self.ui_test.create_doc_in_start_center("math"): xMathDoc = self.xUITest.getTopFocusWindow() def test_docking_window_listbox(self): - with self.ui_test.create_doc_in_start_center_guarded("math"): + with self.ui_test.create_doc_in_start_center("math"): xMathDoc = self.xUITest.getTopFocusWindow() @@ -38,7 +38,7 @@ class SimpleMathTest(UITestCase): def test_math_edit(self): - with self.ui_test.create_doc_in_start_center_guarded("math"): + with self.ui_test.create_doc_in_start_center("math"): xMathDoc = self.xUITest.getTopFocusWindow() @@ -48,7 +48,7 @@ class SimpleMathTest(UITestCase): def test_math_selector(self): - with self.ui_test.create_doc_in_start_center_guarded("math"): + with self.ui_test.create_doc_in_start_center("math"): xMathDoc = self.xUITest.getTopFocusWindow() @@ -60,7 +60,7 @@ class SimpleMathTest(UITestCase): @unittest.skip("on windows the f4 does not always work") def test_complete_math(self): - with self.ui_test.create_doc_in_start_center_guarded("math"): + with self.ui_test.create_doc_in_start_center("math"): xMathDoc = self.xUITest.getTopFocusWindow() diff --git a/uitest/uitest/test.py b/uitest/uitest/test.py index 15cdce4654f0..c1688f84be96 100644 --- a/uitest/uitest/test.py +++ b/uitest/uitest/test.py @@ -177,14 +177,6 @@ class UITest(object): # Calls UITest.close_doc at exit @contextmanager - def create_doc_in_start_center_guarded(self, app): - self.create_doc_in_start_center(app) - component = self.get_component() - try: - yield component - finally: - self.close_doc() - def create_doc_in_start_center(self, app): xStartCenter = self._xUITest.getTopFocusWindow() try: @@ -203,13 +195,16 @@ class UITest(object): if event.executed: frames = self.get_frames() self.get_desktop().setActiveFrame(frames[0]) + component = self.get_component() + try: + yield component + finally: + self.close_doc() return time_ += DEFAULT_SLEEP time.sleep(DEFAULT_SLEEP) - print("failure doc in start center") - - # report a failure here + raise Exception("Failure doc in start center") def close_dialog_through_button(self, button): with EventListener(self._xContext, "DialogClosed" ) as event: diff --git a/uitest/uitest/uihelper/testDialog.py b/uitest/uitest/uihelper/testDialog.py index 828f1ca6b07f..0e443643645f 100644 --- a/uitest/uitest/uihelper/testDialog.py +++ b/uitest/uitest/uihelper/testDialog.py @@ -12,7 +12,7 @@ from uitest.uihelper.common import get_state_as_dict # and if there is an "OK" button open the dialog again and close it by using the OK button # the test only checks if LibreOffice crashes by opening the dialog def testDialog(UITestCase, app, dialog): - with UITestCase.ui_test.create_doc_in_start_center_guarded(app): + with UITestCase.ui_test.create_doc_in_start_center(app): with UITestCase.ui_test.execute_dialog_through_command(dialog['command'], close_button=dialog['closeButton']) as xDialog: if 'skipTestOK' in dialog and dialog['skipTestOK'] == True: xOKBtn = None |