summaryrefslogtreecommitdiff
path: root/sw/qa/uitest/writer_tests7/tdf134243.py
diff options
context:
space:
mode:
Diffstat (limited to 'sw/qa/uitest/writer_tests7/tdf134243.py')
-rw-r--r--sw/qa/uitest/writer_tests7/tdf134243.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/sw/qa/uitest/writer_tests7/tdf134243.py b/sw/qa/uitest/writer_tests7/tdf134243.py
index 53e9109e22bb..e41cb5ce410c 100644
--- a/sw/qa/uitest/writer_tests7/tdf134243.py
+++ b/sw/qa/uitest/writer_tests7/tdf134243.py
@@ -10,17 +10,15 @@ from uitest.uihelper.common import get_url_for_data_file
class tdf134243(UITestCase):
def test_tdf134243(self):
- writer_doc = self.ui_test.load_file(get_url_for_data_file("tdf134243.odt"))
+ with self.ui_test.load_file(get_url_for_data_file("tdf134243.odt")) as writer_doc:
- # Without the fix in place, it would hung launching the mailmerge wizard
- self.ui_test.execute_dialog_through_command(".uno:MailMergeWizard")
+ # Without the fix in place, it would hung launching the mailmerge wizard
+ self.ui_test.execute_dialog_through_command(".uno:MailMergeWizard")
- xDialog = self.xUITest.getTopFocusWindow()
+ xDialog = self.xUITest.getTopFocusWindow()
- xCancelBtn = xDialog.getChild("cancel")
- self.ui_test.close_dialog_through_button(xCancelBtn)
-
- self.ui_test.close_doc()
+ xCancelBtn = xDialog.getChild("cancel")
+ self.ui_test.close_dialog_through_button(xCancelBtn)
# vim: set shiftwidth=4 softtabstop=4 expandtab: