diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-06-30 11:57:03 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-06-30 13:18:38 +0200 |
commit | 3874e092da4acbaa076d885444f26f014fd781b5 (patch) | |
tree | 8342124c5325ad188f9b4be87052c4a884af560e /uitest/demo_ui/radiobutton.py | |
parent | 57e8d25a40d7c053fef8ecb452e159264c659604 (diff) |
uitest: guard the remaining create_doc_in_start_center
Mostly done by a script
for motivation, see 89aaa17a0a4413f07da2bc5084b0164f15dc01ac
< UITest: introduce guarded context managers >
Change-Id: I2a6149b318d1fdaa36efe5d65af4c238827eaaf5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118154
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'uitest/demo_ui/radiobutton.py')
-rw-r--r-- | uitest/demo_ui/radiobutton.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/uitest/demo_ui/radiobutton.py b/uitest/demo_ui/radiobutton.py index f76192b4ffb0..628cf2a38834 100644 --- a/uitest/demo_ui/radiobutton.py +++ b/uitest/demo_ui/radiobutton.py @@ -25,13 +25,12 @@ class RadioButtonTest(UITestCase): def test_toggle_radiobutton(self): - self.ui_test.create_doc_in_start_center("calc") + with self.ui_test.create_doc_in_start_center_guarded("calc"): - with self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog") as xCellsDlg: - xNegativeNumRedCB = xCellsDlg.getChild("negnumred") - xNegativeNumRedCB.executeAction("CLICK",tuple()) + with self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog") as xCellsDlg: + xNegativeNumRedCB = xCellsDlg.getChild("negnumred") + xNegativeNumRedCB.executeAction("CLICK",tuple()) - self.ui_test.close_doc() # vim: set shiftwidth=4 softtabstop=4 expandtab: |