summaryrefslogtreecommitdiff
path: root/sc/qa/uitest/calc_tests7
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/uitest/calc_tests7')
-rw-r--r--sc/qa/uitest/calc_tests7/tdf137397.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/sc/qa/uitest/calc_tests7/tdf137397.py b/sc/qa/uitest/calc_tests7/tdf137397.py
index c98a706d20ed..f1d84bf37a63 100644
--- a/sc/qa/uitest/calc_tests7/tdf137397.py
+++ b/sc/qa/uitest/calc_tests7/tdf137397.py
@@ -17,25 +17,25 @@ class tdf137397(UITestCase):
with self.ui_test.load_file(get_url_for_data_file("tdf137397.ods")):
- change_measurement_unit(self, 'Centimeter')
+ with change_measurement_unit(self, 'Centimeter'):
- xCalcDoc = self.xUITest.getTopFocusWindow()
- xGridWin = xCalcDoc.getChild("grid_window")
+ xCalcDoc = self.xUITest.getTopFocusWindow()
+ xGridWin = xCalcDoc.getChild("grid_window")
- xGridWin.executeAction("SELECT", mkPropertyValues({"OBJECT": "Shape"}))
+ xGridWin.executeAction("SELECT", mkPropertyValues({"OBJECT": "Shape"}))
- self.xUITest.executeCommand(".uno:Sidebar")
- xGridWin.executeAction("SIDEBAR", mkPropertyValues({"PANEL": "TextPropertyPanel"}))
+ self.xUITest.executeCommand(".uno:Sidebar")
+ xGridWin.executeAction("SIDEBAR", mkPropertyValues({"PANEL": "TextPropertyPanel"}))
- xChild = self.ui_test.wait_until_child_is_available('selectwidth')
- self.assertEqual(get_state_as_dict(xChild)['Text'], '6.00 cm')
+ xChild = self.ui_test.wait_until_child_is_available('selectwidth')
+ self.assertEqual(get_state_as_dict(xChild)['Text'], '6.00 cm')
- # Without the fix in place, this test would have failed with
- # AssertionError: '-14,585,309.84 cm' != '2.00 cm'
- xChild = self.ui_test.wait_until_child_is_available('selectheight')
- self.assertEqual(get_state_as_dict(xChild)['Text'], '2.00 cm')
+ # Without the fix in place, this test would have failed with
+ # AssertionError: '-14,585,309.84 cm' != '2.00 cm'
+ xChild = self.ui_test.wait_until_child_is_available('selectheight')
+ self.assertEqual(get_state_as_dict(xChild)['Text'], '2.00 cm')
- self.xUITest.executeCommand(".uno:Sidebar")
+ self.xUITest.executeCommand(".uno:Sidebar")
# vim: set shiftwidth=4 softtabstop=4 expandtab: