diff options
author | tagezi <lera.goncharuk@gmail.com> | 2022-05-27 13:00:39 +0300 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-05-30 09:48:46 +0200 |
commit | c3baf2a7f48b5ee46c6792b3106cb4fedb4a2ad2 (patch) | |
tree | ba3e8c1fcdf65307d892d4420f413b8770859c89 /sc/qa/uitest/calc_tests | |
parent | 507a8871c25aa9b7e5a02ceb86f5c60ebccc722b (diff) |
sc uitests: Cleaning up unused variables
Removed unused variables in the 'with' statement as the syntax
allows the statement to be used without a variable.
Removed variables like 'xcomments' and 'xseedspin', which seem
to have been copied and not cleaned up.
Removed variables 'gridwin' and 'xCalcDoc' if 'gridwin' is not used.
Change-Id: Ia97692a0fb2e2af1d2693e09ac8f7c614360ade8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135042
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa/uitest/calc_tests')
-rw-r--r-- | sc/qa/uitest/calc_tests/calcSheetDelete.py | 6 | ||||
-rw-r--r-- | sc/qa/uitest/calc_tests/columns.py | 1 | ||||
-rw-r--r-- | sc/qa/uitest/calc_tests/formatCells.py | 3 | ||||
-rw-r--r-- | sc/qa/uitest/calc_tests/rows.py | 1 | ||||
-rw-r--r-- | sc/qa/uitest/calc_tests/sheetRename.py | 4 |
5 files changed, 0 insertions, 15 deletions
diff --git a/sc/qa/uitest/calc_tests/calcSheetDelete.py b/sc/qa/uitest/calc_tests/calcSheetDelete.py index e631f9dbac0f..3e9da3f516d4 100644 --- a/sc/qa/uitest/calc_tests/calcSheetDelete.py +++ b/sc/qa/uitest/calc_tests/calcSheetDelete.py @@ -72,9 +72,6 @@ class calcSheetDelete(UITestCase): def test_delete_more_sheets_at_once(self): with self.ui_test.create_doc_in_start_center("calc") as document: - - xCalcDoc = self.xUITest.getTopFocusWindow() - xGridWindow = xCalcDoc.getChild("grid_window") nrSheets = document.Sheets.getCount() #default number i = 0 while i < 6: @@ -103,9 +100,6 @@ class calcSheetDelete(UITestCase): def test_tdf105105_delete_lots_of_sheets_at_once(self): with self.ui_test.create_doc_in_start_center("calc") as document: - - xCalcDoc = self.xUITest.getTopFocusWindow() - xGridWindow = xCalcDoc.getChild("grid_window") nrSheets = document.Sheets.getCount() #default number i = 0 while i < 100: diff --git a/sc/qa/uitest/calc_tests/columns.py b/sc/qa/uitest/calc_tests/columns.py index 40856a350c8c..6813471d71fe 100644 --- a/sc/qa/uitest/calc_tests/columns.py +++ b/sc/qa/uitest/calc_tests/columns.py @@ -59,7 +59,6 @@ class CalcColumns(UITestCase): with self.ui_test.execute_dialog_through_command(".uno:ColumnWidth") as xDialog: xvalue = xDialog.getChild("value") - xdefault = xDialog.getChild("default") #write your own value xvalue.executeAction("TYPE", mkPropertyValues({"KEYCODE":"CTRL+A"})) xvalue.executeAction("TYPE", mkPropertyValues({"KEYCODE":"BACKSPACE"})) diff --git a/sc/qa/uitest/calc_tests/formatCells.py b/sc/qa/uitest/calc_tests/formatCells.py index 86d844d1bc8b..4c3b892ddc3d 100644 --- a/sc/qa/uitest/calc_tests/formatCells.py +++ b/sc/qa/uitest/calc_tests/formatCells.py @@ -25,8 +25,6 @@ class formatCell(UITestCase): with self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog") as xDialog: xTabs = xDialog.getChild("tabcontrol") select_pos(xTabs, "0") #tab Numbers - xliststore1 = xDialog.getChild("categorylb") #1st list / Category - xliststore2 = xDialog.getChild("formatlb") #2nd list / Format xdecimalsed = xDialog.getChild("decimalsed") xleadzerosed = xDialog.getChild("leadzerosed") xnegnumred = xDialog.getChild("negnumred") @@ -50,7 +48,6 @@ class formatCell(UITestCase): xTabs = xDialog.getChild("tabcontrol") select_pos(xTabs, "0") #tab Numbers xliststore1 = xDialog.getChild("categorylb") #1st list / Category - xliststore2 = xDialog.getChild("formatlb") #2nd list / Format xdecimalsed = xDialog.getChild("decimalsed") xleadzerosed = xDialog.getChild("leadzerosed") xnegnumred = xDialog.getChild("negnumred") diff --git a/sc/qa/uitest/calc_tests/rows.py b/sc/qa/uitest/calc_tests/rows.py index e924bc1b3ede..fe65f72365cd 100644 --- a/sc/qa/uitest/calc_tests/rows.py +++ b/sc/qa/uitest/calc_tests/rows.py @@ -60,7 +60,6 @@ class CalcRows(UITestCase): with self.ui_test.execute_dialog_through_command(".uno:RowHeight") as xDialog: xvalue = xDialog.getChild("value") - xdefault = xDialog.getChild("default") #write your own value xvalue.executeAction("TYPE", mkPropertyValues({"KEYCODE":"CTRL+A"})) xvalue.executeAction("TYPE", mkPropertyValues({"KEYCODE":"BACKSPACE"})) diff --git a/sc/qa/uitest/calc_tests/sheetRename.py b/sc/qa/uitest/calc_tests/sheetRename.py index c70aaee4c472..95317a111246 100644 --- a/sc/qa/uitest/calc_tests/sheetRename.py +++ b/sc/qa/uitest/calc_tests/sheetRename.py @@ -13,8 +13,6 @@ from libreoffice.uno.propertyvalue import mkPropertyValues class sheetRename(UITestCase): def test_sheet_rename(self): 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: xname_entry = xDialog.getChild("name_entry") xname_entry.executeAction("TYPE", mkPropertyValues({"TEXT":"NewName"})) @@ -26,8 +24,6 @@ class sheetRename(UITestCase): def test_sheet_rename_invalid_sheet_name(self): 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: xname_entry = xDialog.getChild("name_entry") nameVal = get_state_as_dict(xname_entry)["Text"] |