aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-12-02 19:21:08 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2020-12-03 12:59:22 +0100
commit2eb77e11249867d1aa07ae51c0be6ce22df38653 (patch)
tree057a80c4a08d4804b01cb97477eed71a42a83d9f
parentbde8fcaee1011eea12f76fe71cfee8bacdc54dd7 (diff)
disable test_minimal_border_width
This was added with 63540cbef6484fa9dc017c93676d0b5e85075303 but a) change_measurement_unit doesn't exist on this branch b) if i backport that then the test deadlocks. Change-Id: I782bd5615a89734dc65234d75b779bc1e1b8c1d1
-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