summaryrefslogtreecommitdiff
path: root/sc/qa/uitest/calc_tests9/tdf113571.py
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/uitest/calc_tests9/tdf113571.py')
-rw-r--r--sc/qa/uitest/calc_tests9/tdf113571.py31
1 files changed, 15 insertions, 16 deletions
diff --git a/sc/qa/uitest/calc_tests9/tdf113571.py b/sc/qa/uitest/calc_tests9/tdf113571.py
index 89e0b2afd3a4..48657e37e60d 100644
--- a/sc/qa/uitest/calc_tests9/tdf113571.py
+++ b/sc/qa/uitest/calc_tests9/tdf113571.py
@@ -11,28 +11,27 @@ from libreoffice.uno.propertyvalue import mkPropertyValues
class Tdf113571(UITestCase):
def test_tdf113571(self):
- self.ui_test.load_file(get_url_for_data_file("tdf113571.ods"))
+ with self.ui_test.load_file(get_url_for_data_file("tdf113571.ods")):
- xCalcDoc = self.xUITest.getTopFocusWindow()
- gridwin = xCalcDoc.getChild("grid_window")
+ xCalcDoc = self.xUITest.getTopFocusWindow()
+ gridwin = xCalcDoc.getChild("grid_window")
- gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"}))
+ gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"}))
- self.xUITest.executeCommand(".uno:Copy")
+ self.xUITest.executeCommand(".uno:Copy")
- # Close the document
- self.xUITest.executeCommand(".uno:CloseDoc")
+ # Close the document
+ self.xUITest.executeCommand(".uno:CloseDoc")
- self.ui_test.create_doc_in_start_center("writer")
+ self.ui_test.create_doc_in_start_center("writer")
- self.xUITest.executeCommand(".uno:PasteUnformatted")
+ self.xUITest.executeCommand(".uno:PasteUnformatted")
- document = self.ui_test.get_component()
+ document = self.ui_test.get_component()
- # Without the fix in place, this test would have failed with
- # AssertionError: '<?xml version="1.0" encoding="UTF-8"?>\n<[34 chars]est>' !=
- # '"<?xml version=""1.0"" encoding=""UTF-8""[40 chars]st>"'
- self.assertEqual('<?xml version="1.0" encoding="UTF-8"?>\n<test>\n <hello>world</hello>\n</test>',
- document.Text.String)
+ # Without the fix in place, this test would have failed with
+ # AssertionError: '<?xml version="1.0" encoding="UTF-8"?>\n<[34 chars]est>' !=
+ # '"<?xml version=""1.0"" encoding=""UTF-8""[40 chars]st>"'
+ self.assertEqual('<?xml version="1.0" encoding="UTF-8"?>\n<test>\n <hello>world</hello>\n</test>',
+ document.Text.String)
- self.ui_test.close_doc()