diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2024-07-12 09:03:38 +0200 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2024-07-16 09:53:46 +0200 |
commit | 5e45351c52584fb116d2cc54da969734e5effab9 (patch) | |
tree | 451f9d88a500c651c21e5942602870b9574fddf7 /sc | |
parent | 913e26de02067d49cdbe2746f9e3c3c9bed63236 (diff) |
Resolves tdf#105000 - Make shipped palette names translatable
Change-Id: Ifd062cf25c6e930da56571e01c21bd9d2ddf6ddd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170394
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/uitest/calc_tests/cellBackgroundColorSelector.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/qa/uitest/calc_tests/cellBackgroundColorSelector.py b/sc/qa/uitest/calc_tests/cellBackgroundColorSelector.py index dcd7c75c0f2a..1839545c7e88 100644 --- a/sc/qa/uitest/calc_tests/cellBackgroundColorSelector.py +++ b/sc/qa/uitest/calc_tests/cellBackgroundColorSelector.py @@ -36,7 +36,7 @@ class CalcCellBackgroundColorSelector(UITestCase): color_selector = xColorpage.getChild("colorset") # For chart-palettes colors - select_by_text(xpaletteselector, "chart-palettes") + select_by_text(xpaletteselector, "Chart Palettes") # Select Color with id 2 color_selector.executeAction("CHOOSE", mkPropertyValues({"POS": "2"})) self.assertEqual(get_state_as_dict(color_selector)["CurrColorId"], "2") @@ -54,7 +54,7 @@ class CalcCellBackgroundColorSelector(UITestCase): self.assertEqual(get_state_as_dict(color_selector)["RGB"], "(126,0,33)") # For libreoffice colors - select_by_text(xpaletteselector, "libreoffice") + select_by_text(xpaletteselector, "LibreOffice") # Select Color with id 6 color_selector.executeAction("CHOOSE", mkPropertyValues({"POS": "6"})) self.assertEqual(get_state_as_dict(color_selector)["CurrColorId"], "6") @@ -72,7 +72,7 @@ class CalcCellBackgroundColorSelector(UITestCase): self.assertEqual(get_state_as_dict(color_selector)["RGB"], "(255,215,76)") # For html colors - select_by_text(xpaletteselector, "html") + select_by_text(xpaletteselector, "HTML") # Select Color with id 1 color_selector.executeAction("CHOOSE", mkPropertyValues({"POS": "1"})) self.assertEqual(get_state_as_dict(color_selector)["CurrColorId"], "1") @@ -87,7 +87,7 @@ class CalcCellBackgroundColorSelector(UITestCase): self.assertEqual(get_state_as_dict(color_selector)["ColorText"], "Navy") # For freecolour-hlc colors - select_by_text(xpaletteselector, "freecolour-hlc") + select_by_text(xpaletteselector, "Freecolour HLC") # Select Color with id 988 color_selector.executeAction("CHOOSE", mkPropertyValues({"POS": "988"})) self.assertEqual(get_state_as_dict(color_selector)["CurrColorId"], "988") @@ -102,7 +102,7 @@ class CalcCellBackgroundColorSelector(UITestCase): self.assertEqual(get_state_as_dict(color_selector)["ColorText"], "HLC 190 50 20") # For tonal colors - select_by_text(xpaletteselector, "tonal") + select_by_text(xpaletteselector, "Tonal") # Select Color with id 17 color_selector.executeAction("CHOOSE", mkPropertyValues({"POS": "17"})) self.assertEqual(get_state_as_dict(color_selector)["CurrColorId"], "17") @@ -117,7 +117,7 @@ class CalcCellBackgroundColorSelector(UITestCase): self.assertEqual(get_state_as_dict(color_selector)["ColorText"], "Magenta 82%") # For material colors - select_by_text(xpaletteselector, "material") + select_by_text(xpaletteselector, "Material") # Select Color with id 9 color_selector.executeAction("CHOOSE", mkPropertyValues({"POS": "9"})) self.assertEqual(get_state_as_dict(color_selector)["CurrColorId"], "9") @@ -127,7 +127,7 @@ class CalcCellBackgroundColorSelector(UITestCase): self.assertEqual(get_state_as_dict(color_selector)["ColorText"], "Gray 800") # For standard colors - select_by_text(xpaletteselector, "standard") + select_by_text(xpaletteselector, "Standard") # Select Color with id 3 color_selector.executeAction("CHOOSE", mkPropertyValues({"POS": "3"})) self.assertEqual(get_state_as_dict(color_selector)["CurrColorId"], "3") @@ -161,7 +161,7 @@ class CalcCellBackgroundColorSelector(UITestCase): color_selector = xColorpage.getChild("colorset") # For chart-palettes colors - select_by_text(xpaletteselector, "chart-palettes") + select_by_text(xpaletteselector, "Chart Palettes") # Select Color with id 2 color_selector.executeAction("CHOOSE", mkPropertyValues({"POS": "2"})) self.assertEqual(get_state_as_dict(color_selector)["CurrColorId"], "2") |