diff options
author | Balazs Varga <balazs.varga.extern@allotropia.de> | 2022-07-25 18:03:49 +0200 |
---|---|---|
committer | Balazs Varga <balazs.varga.extern@allotropia.de> | 2022-07-29 08:53:49 +0200 |
commit | fe2d59a0730e60c0196baa46af12440afd343878 (patch) | |
tree | e627745273cc638e5f855b650067f485dcaddef7 /sc | |
parent | 4f61276dae10fdaf2ed33ab23d98adbe311cb7ee (diff) |
tdf#150100 sc import and UI: fix double cell border dialog
Hide "Hairline (0.05pt)", "Very thin (0.5pt)" and "Thin (0.75pt)"
predefined border types for Double cell borders, because it has a
minimum thickness 1.1pt, which means, we cannot allow to select them.
Also setting the Medium (1.5pt) predefined thickness to the border
width for Double borders as the thinnest possible predefined value.
TODO: tdf#146466: Inconsistent choices of borders between toolbar and sidebar
Change-Id: I46ccb206835a34a6dfaa39e63e614bb01bc6b02e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137441
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/uitest/calc_tests/formatCells.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/qa/uitest/calc_tests/formatCells.py b/sc/qa/uitest/calc_tests/formatCells.py index e258721fbb5c..7397a9b9c76d 100644 --- a/sc/qa/uitest/calc_tests/formatCells.py +++ b/sc/qa/uitest/calc_tests/formatCells.py @@ -270,24 +270,25 @@ class formatCell(UITestCase): # 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, '0.75 pt') + # minimim predefined width is Medium (1.50 pt) + self.assertEqual(widthVal, '1.50 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') + self.assertEqual(widthVal, '1.50 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') + self.assertEqual(widthVal, '2.25 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') + self.assertEqual(widthVal, '2.25 pt') |