From 3874e092da4acbaa076d885444f26f014fd781b5 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 30 Jun 2021 11:57:03 +0200 Subject: 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 --- uitest/demo_ui/radiobutton.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'uitest/demo_ui/radiobutton.py') 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: -- cgit