summaryrefslogtreecommitdiff
path: root/cui/qa/uitest
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-08-31 16:19:13 +0200
committerRegina Henschel <rb.henschel@t-online.de>2023-09-01 14:24:45 +0200
commit85aa230aebfe383eecdb4fc6704d093db8a18402 (patch)
treeee0f6866b89586db2cac0a1a9a483807c90aaa1a /cui/qa/uitest
parent151a43f3d00f6523079c53d6c2d064f80b9a55d6 (diff)
tdf#157034: FILESAVE loext:theme-type is off by one
nItemId begins with 1 but list of themes begin with 0 so decrement nItemId part of bt here: https://bugs.documentfoundation.org/show_bug.cgi?id=157034#c1 + adapt QA tests Change-Id: I7913ea0f71abb9ff98039a9c45a49fdb8f709ae0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156350 Tested-by: Jenkins Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'cui/qa/uitest')
-rw-r--r--cui/qa/uitest/dialogs/chardlg.py4
-rw-r--r--cui/qa/uitest/tabpages/tpcolor.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/cui/qa/uitest/dialogs/chardlg.py b/cui/qa/uitest/dialogs/chardlg.py
index 85e60f766238..d6ebffac3e1e 100644
--- a/cui/qa/uitest/dialogs/chardlg.py
+++ b/cui/qa/uitest/dialogs/chardlg.py
@@ -106,9 +106,9 @@ class Test(UITestCase):
portion = portions.nextElement()
# Without the accompanying fix in place, this test would have failed with:
- # AssertionError: -1 != 4
+ # AssertionError: -1 != 3
# i.e. no theme index was set, instead of accent1 (index into the above color scheme).
- self.assertEqual(portion.CharColorTheme, 4)
+ self.assertEqual(portion.CharColorTheme, 3)
# Then make sure that '80% lighter' is lum-mod=2000 and lum-off=8000:
# Without the accompanying fix in place, this test would have failed with:
diff --git a/cui/qa/uitest/tabpages/tpcolor.py b/cui/qa/uitest/tabpages/tpcolor.py
index ad52711857e4..820ffa634eb1 100644
--- a/cui/qa/uitest/tabpages/tpcolor.py
+++ b/cui/qa/uitest/tabpages/tpcolor.py
@@ -61,9 +61,9 @@ class Test(UITestCase):
# Then make sure the doc model is updated accordingly:
shape = drawPage.getByIndex(0)
# Without the accompanying fix in place, this test would have failed with:
- # AssertionError: -1 != 4
+ # AssertionError: -1 != 3
# i.e. the theme metadata of the selected fill color was lost.
- self.assertEqual(shape.FillColorTheme, 4)
+ self.assertEqual(shape.FillColorTheme, 3)
# vim: set shiftwidth=4 softtabstop=4 expandtab: