summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/qa/uitest/calc_tests/formatCells.py104
1 files changed, 52 insertions, 52 deletions
diff --git a/sc/qa/uitest/calc_tests/formatCells.py b/sc/qa/uitest/calc_tests/formatCells.py
index b930e7c751b4..38e2493fc67e 100644
--- a/sc/qa/uitest/calc_tests/formatCells.py
+++ b/sc/qa/uitest/calc_tests/formatCells.py
@@ -293,58 +293,58 @@ class formatCell(UITestCase):
self.ui_test.close_doc()
- def test_minimal_border_width(self):
- #borderpage.ui, tdf#137790
- calc_doc = self.ui_test.create_doc_in_start_center("calc")
- xCalcDoc = self.xUITest.getTopFocusWindow()
- gridwin = xCalcDoc.getChild("grid_window")
- document = self.ui_test.get_component()
-
- #set points pt measurement
- change_measurement_unit(self, "Point")
-
- #select cell A1
- gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"}))
- #format - cell
- self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog")
- xDialog = self.xUITest.getTopFocusWindow()
- xTabs = xDialog.getChild("tabcontrol")
- select_pos(xTabs, "5") #tab Borders
-
- linewidthmf = xDialog.getChild("linewidthmf")
- xLineSet = xDialog.getChild('lineset')
-
- # check line-width for default solid line
- self.assertEqual('0', get_state_as_dict(xLineSet)['SelectedItemPos'])
- widthVal = get_state_as_dict(linewidthmf)["Text"]
- self.assertEqual(widthVal, '0.75 pt')
-
- # set line style to "double" (minimal width is taken)
- xLineSet.executeAction("CHOOSE", mkPropertyValues({"POS": '16'}))
- widthVal = get_state_as_dict(linewidthmf)["Text"]
- self.assertEqual(widthVal, '1.10 pt')
-
- # set line style to "solid"
- xLineSet.executeAction("CHOOSE", mkPropertyValues({"POS": "1"}))
- widthVal = get_state_as_dict(linewidthmf)["Text"]
- self.assertEqual(widthVal, '0.75 pt')
-
- # make custom line width
- linewidthmf.executeAction("UP", tuple())
- linewidthmf.executeAction("UP", tuple())
- linewidthmf.executeAction("UP", tuple())
- widthVal = get_state_as_dict(linewidthmf)["Text"]
- self.assertEqual(widthVal, '1.50 pt')
-
- # set line style to "double" (minimal width is not taken)
- xLineSet.executeAction("CHOOSE", mkPropertyValues({"POS": "8"}))
- widthVal = get_state_as_dict(linewidthmf)["Text"]
- self.assertEqual(widthVal, '1.50 pt')
-
- xOKBtn = xDialog.getChild("ok")
- self.ui_test.close_dialog_through_button(xOKBtn)
-
- self.ui_test.close_doc()
+# def test_minimal_border_width(self):
+# #borderpage.ui, tdf#137790
+# calc_doc = self.ui_test.create_doc_in_start_center("calc")
+# xCalcDoc = self.xUITest.getTopFocusWindow()
+# gridwin = xCalcDoc.getChild("grid_window")
+# document = self.ui_test.get_component()
+#
+# #set points pt measurement
+# change_measurement_unit(self, "Point")
+#
+# #select cell A1
+# gridwin.executeAction("SELECT", mkPropertyValues({"CELL": "A1"}))
+# #format - cell
+# self.ui_test.execute_dialog_through_command(".uno:FormatCellDialog")
+# xDialog = self.xUITest.getTopFocusWindow()
+# xTabs = xDialog.getChild("tabcontrol")
+# select_pos(xTabs, "5") #tab Borders
+#
+# linewidthmf = xDialog.getChild("linewidthmf")
+# xLineSet = xDialog.getChild('lineset')
+#
+# # check line-width for default solid line
+# self.assertEqual('0', get_state_as_dict(xLineSet)['SelectedItemPos'])
+# widthVal = get_state_as_dict(linewidthmf)["Text"]
+# self.assertEqual(widthVal, '0.75 pt')
+#
+# # set line style to "double" (minimal width is taken)
+# xLineSet.executeAction("CHOOSE", mkPropertyValues({"POS": '16'}))
+# widthVal = get_state_as_dict(linewidthmf)["Text"]
+# self.assertEqual(widthVal, '1.10 pt')
+#
+# # set line style to "solid"
+# xLineSet.executeAction("CHOOSE", mkPropertyValues({"POS": "1"}))
+# widthVal = get_state_as_dict(linewidthmf)["Text"]
+# self.assertEqual(widthVal, '0.75 pt')
+#
+# # make custom line width
+# linewidthmf.executeAction("UP", tuple())
+# linewidthmf.executeAction("UP", tuple())
+# linewidthmf.executeAction("UP", tuple())
+# widthVal = get_state_as_dict(linewidthmf)["Text"]
+# self.assertEqual(widthVal, '1.50 pt')
+#
+# # set line style to "double" (minimal width is not taken)
+# xLineSet.executeAction("CHOOSE", mkPropertyValues({"POS": "8"}))
+# widthVal = get_state_as_dict(linewidthmf)["Text"]
+# self.assertEqual(widthVal, '1.50 pt')
+#
+# xOKBtn = xDialog.getChild("ok")
+# self.ui_test.close_dialog_through_button(xOKBtn)
+#
+# self.ui_test.close_doc()
def test_format_cell_borders_tab(self):
#borderpage.ui