summaryrefslogtreecommitdiff
path: root/sc/qa/uitest/calc_tests7/tdf124818.py
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/uitest/calc_tests7/tdf124818.py')
-rw-r--r--sc/qa/uitest/calc_tests7/tdf124818.py21
1 files changed, 10 insertions, 11 deletions
diff --git a/sc/qa/uitest/calc_tests7/tdf124818.py b/sc/qa/uitest/calc_tests7/tdf124818.py
index 5101be90a91a..f73bb543d312 100644
--- a/sc/qa/uitest/calc_tests7/tdf124818.py
+++ b/sc/qa/uitest/calc_tests7/tdf124818.py
@@ -11,18 +11,17 @@ from uitest.uihelper.common import get_url_for_data_file
class tdf124818(UITestCase):
def test_tdf124818_crash_select_all_and_switch_spreadsheet(self):
- calc_doc = self.ui_test.load_file(get_url_for_data_file("tdf124818.xls"))
- xCalcDoc = self.xUITest.getTopFocusWindow()
- gridwin = xCalcDoc.getChild("grid_window")
- document = self.ui_test.get_component()
+ with self.ui_test.load_file(get_url_for_data_file("tdf124818.xls")) as calc_doc:
+ xCalcDoc = self.xUITest.getTopFocusWindow()
+ gridwin = xCalcDoc.getChild("grid_window")
+ document = self.ui_test.get_component()
- #Select all ( Ctrl + A );Go to sheet Graph2;Select all;Crash
- self.xUITest.executeCommand(".uno:SelectAll")
- self.xUITest.executeCommand(".uno:JumpToPrevTable")
- self.xUITest.executeCommand(".uno:SelectAll")
+ #Select all ( Ctrl + A );Go to sheet Graph2;Select all;Crash
+ self.xUITest.executeCommand(".uno:SelectAll")
+ self.xUITest.executeCommand(".uno:JumpToPrevTable")
+ self.xUITest.executeCommand(".uno:SelectAll")
- #verify; no crashes
- self.assertEqual(document.Sheets.getCount(), 3)
+ #verify; no crashes
+ self.assertEqual(document.Sheets.getCount(), 3)
- self.ui_test.close_doc()
# vim: set shiftwidth=4 softtabstop=4 expandtab: