diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-09-12 21:16:40 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-09-13 10:38:27 +0200 |
commit | f75bae7082322a2e79997d041ce5f8afd3910107 (patch) | |
tree | e4820226bf00e8b5726a737c568c52961ae1bce9 /sc/qa/uitest/statistics/correlation.py | |
parent | 714278ce47692d57965b06e8b83de632e6e97d2d (diff) |
uitest: combine execute_modeless_dialog_through_command methods
Change-Id: Idada1927f6b8b55133e1ff8c776a987699df1dc4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122012
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa/uitest/statistics/correlation.py')
-rw-r--r-- | sc/qa/uitest/statistics/correlation.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/qa/uitest/statistics/correlation.py b/sc/qa/uitest/statistics/correlation.py index 30c84a0e15c8..7295496134c9 100644 --- a/sc/qa/uitest/statistics/correlation.py +++ b/sc/qa/uitest/statistics/correlation.py @@ -57,7 +57,7 @@ class correlation(UITestCase): enter_text_to_cell(gridwin, "C10", "12") enter_text_to_cell(gridwin, "C11", "60") gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:C13"})) - with self.ui_test.execute_modeless_dialog_through_command_guarded(".uno:CorrelationDialog") as xDialog: + with self.ui_test.execute_modeless_dialog_through_command(".uno:CorrelationDialog") as xDialog: xinputrangeedit = xDialog.getChild("input-range-edit") xoutputrangeedit = xDialog.getChild("output-range-edit") xgroupedbyrowsradio = xDialog.getChild("groupedby-rows-radio") @@ -95,7 +95,7 @@ class correlation(UITestCase): self.assertEqual(get_cell_by_position(document, 0, 5, 0).getString(), "") # test cancel button - with self.ui_test.execute_modeless_dialog_through_command_guarded(".uno:CorrelationDialog", close_button="cancel"): + with self.ui_test.execute_modeless_dialog_through_command(".uno:CorrelationDialog", close_button="cancel"): pass def test_statistic_correlation_row(self): @@ -151,7 +151,7 @@ class correlation(UITestCase): enter_text_to_cell(gridwin, "M1", "26") gridwin.executeAction("SELECT", mkPropertyValues({"RANGE": "A1:M3"})) - with self.ui_test.execute_modeless_dialog_through_command_guarded(".uno:CorrelationDialog") as xDialog: + with self.ui_test.execute_modeless_dialog_through_command(".uno:CorrelationDialog") as xDialog: xinputrangeedit = xDialog.getChild("input-range-edit") xoutputrangeedit = xDialog.getChild("output-range-edit") xgroupedbyrowsradio = xDialog.getChild("groupedby-rows-radio") |